Axiometa
Keyboard Key with an Addressable LED
Keyboard Key with an Addressable LED
SKU:AX22-0027
Low stock: 5 left
Regular price
$3.99
Regular price
Sale price
$3.99
Unit price
per
Taxes included.
Shipping calculated at checkout.
Couldn't load pickup availability

Technical Details
Pinout
Arduino Example Snippet
#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();
}
}