
Details
Two tactile push buttons stacked in a straight line. Electrically it is the same as the Two Pad; only the layout differs.
Each button has its own digital line, with a 10 kΩ pull-up resistor and debounce already on the board: a line reads HIGH at rest and LOW while its button is pressed. Both can be pressed at once. It runs at 1.8 V, 3.3 V or 5 V.
The board is 22 × 22 mm with four ⌀2.7 mm mounting holes. It plugs into a breadboard or any AX22 port, and works in the Arduino IDE with a plain digitalRead(), in MicroPython and in MicroBlocks.
No wiring. No coding.
Two Pad (Inline) pushes straight into any AX22 port. Then say what you want in Axiometa Studio, which writes the code and uploads it to your board.
Pinouts
Resources
#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");
}
}