Skip to product information
1 of 4

Two Pad (Inline)

Two Pad (Inline)

SKU:AX22-0042

  • Two push buttons, one above the other.
  • Two tactile push buttons with separate digital outputs.
  • 10 kΩ pull-ups and debounce on board: no extra parts.
  • 22 × 22 mm AX22 module that plugs straight into AX22 ports.
  • Made for games, menu selection and start/stop control.
  • Breadboard Compatible design with 4x Mounting Holes.
Regular price $3.49
Regular price Sale price $3.49
Sale Sold out

In stock

View full details

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.

Component datasheet (opens in a new tab)

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

Two Pad (Inline) pinout

Resources

Two Pad (Inline) AX22-0042
PCB front
Two Pad (Inline) — PCB front
PCB back
Two Pad (Inline) — PCB back
ax22-0042.ino
#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");
  }
}