Skip to content

Instantly share code, notes, and snippets.

View 256k's full-sized avatar
💭
🔲 🔲 🔲 🔲

Fayek Helmi 256k

💭
🔲 🔲 🔲 🔲
View GitHub Profile
@256k
256k / FALSTAD-O_C-cv-input-scxaling.txt
Last active December 29, 2021 23:07
Explanation of how the O_C circuit converts +/-5V inputs into 0-3.3V inputs
$ 1 0.000005 10.20027730826997 50 5 43 5e-11
g 256 176 240 176 0 0
R 128 208 64 208 0 1 40 5 0 0 0.5
r 128 208 192 208 0 100000
w 192 208 256 208 0
w 400 192 400 272 0
r 400 272 256 272 0 33000
w 256 272 256 208 0
w 400 192 432 192 0
r 432 192 512 192 0 100
@256k
256k / SSMP.json
Created May 4, 2021 19:06
Via JSON layout for the Super Simple Macropad
{
"name": "Super Simple Macropad",
"vendorId": "0x256A",
"productId": "0x4245",
"lighting": "none",
"matrix": { "rows": 2, "cols": 4 },
"layouts": {
"keymap": [
["0,0", "0,1", "0,2", "0,3"],
["1,0", "1,1", "1,2", "1,3"]
@256k
256k / README.md
Last active February 7, 2020 15:27
this is the first draft of the tokyo60 via json config. will create a more clean one later and will work on a script that can auto generate it

things to do to create the magic script:

formattinghe matrix layout:

  1. import the keyboard.h file
  2. strip all text and keep the object
  3. loop over each object in big object and return the value after being formatted into an array as string
  4. for the format, strip all the K letters
  5. convert the hexadecimal second number to decimal
{
"Link Color" : {
"Red Component" : 0,
"Color Space" : "sRGB",
"Blue Component" : 0.73423302173614502,
"Alpha Component" : 1,
"Green Component" : 0.35916060209274292
},
"Tags" : [
@256k
256k / readme.md
Created February 7, 2019 15:51
setup and customization of LGPT for raspberry pi

tutorial:

@256k
256k / custom responsive nav bar.markdown
Created July 4, 2016 20:58
custom responsive nav bar