
Technical details
- 22 mm × 22 mm square
- 4× ⌀2.7 mm Mounting Holes
- Compatible with most MX & Kailh key cap styles
- 24-bit colour, 800 kHz single-wire protocol
- Switch pullup and debounce
- 3.3 V, 5.0 V
- Arduino IDE Compatible
- MicroPython Compatible
- MicroBlocks Compatible
Drag to rotate
Pinout & connections
Arduino example
#include <Adafruit_NeoPixel.h>
#define BUTTON_PIN 1
#define NEOPIXEL_PIN 14
#define NUM_PIXELS 1 // assuming only one NeoPixel
Adafruit_NeoPixel strip(NUM_PIXELS, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pinMode(BUTTON_PIN, INPUT_PULLUP);
strip.begin();
strip.show();
}
void loop() {
int buttonState = digitalRead(BUTTON_PIN);
if (buttonState == LOW) {
strip.setPixelColor(0, strip.Color(255, 0, 0)); // Red
strip.show();
} else {
strip.setPixelColor(0, strip.Color(0, 0, 0)); // Off
strip.show();
}
}