
Technical details
- 22 mm × 22 mm square
- 4× ⌀2.7 mm Mounting Holes
- 2x Seperate Digital Outputs
- 1.8 V, 3.3 V, 5.0 V
- Arduino IDE Compatible
- MicroPython Compatible
- MicroBlocks Compatible
Drag to rotate
Pinout & connections
Arduino example
#define PIN_BTN1 14 // IO1
#define PIN_BTN2 41 // IO2
void setup() {
pinMode(PIN_BTN1, INPUT_PULLUP);
pinMode(PIN_BTN2, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
if (!digitalRead(PIN_BTN1)) {
Serial.println("Button 1 Pressed");
}
if (!digitalRead(PIN_BTN2)) {
Serial.println("Button 2 Pressed");
}
}