Electronics
Model downloaden
AI Keyboard (Kiro version)
5
Downloads
3
Likes
3
Makes
You will need a RP2024 chip and 3 keys. Be aware of the colors. Need Red for cross Need to solder keys and rp2040 together and program the chip. Code can be generated by AI. Or if you want to use mine: #include <Keyboard.h> #include <Adafruit_NeoPixel.h> // ===== RGB ===== #define RGB_POWER 11 #define RGB_PIN 12 Adafruit_NeoPixel pixels(1, RGB_PIN, NEO_GRB + NEO_KHZ800); // ===== Physical buttons ===== // Left button triggers purple now #define KEY_LEFT 4 // Middle button triggers blue now #define KEY_MIDDLE 2 // Right button triggers red now #define KEY_RIGHT 1 bool lastLeft = HIGH; bool lastMiddle = HIGH; bool lastRight = HIGH; void setColor(uint8_t r, uint8_t g, uint8_t b) { pixels.setPixelColor(0, pixels.Color(r, g, b)); pixels.show(); } void flash(uint8_t r, uint8_t g, uint8_t b) { setColor(r, g, b); delay(80); setColor(0, 0, 30); } void sendCtrlC() { Keyboard.press(KEY_LEFT_CTRL); Keyboard.press('c'); delay(50); Keyboard.releaseAll(); } void sendCmdEnter() { Keyboard.press(KEY_LE
Heb je dit model geprint? Inloggen en deel je make!
Log in om een reactie achter te laten
InloggenNog geen reacties – wees de eerste!