Skip to product information
1 of 3

Axiometa

Two Pad (Inline)

Two Pad (Inline)

SKU:AX22-0042

Out of stock

This AX22-sized board mounts two tactile push buttons on a compact 22 × 22 mm PCB in a stacked layout .Each switch is pre-wired with its own 10 kΩ pull-up resistor and debounce. Drop it into any AX22 backplane to add game-style input, dual-function menu selects, or start/stop control in seconds, whether you’re coding in the Arduino IDE, MicroPython, or MicroBlocks.
Regular price $2.49
Regular price Sale price $2.49
Sale Sold out
Taxes included. Shipping calculated at checkout.
View full 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

    Material Datasheet 

Technical Resources

Two Pad (Inline) - (AX22-0042)

PCB FRONT

PCB BACK

🟢 Live 3D Model

No 3D model available for this product.

#include <Adafruit_NeoPixel.h>

#define LED_PIN 18
#define LED_COUNT 1
#define BTN1 40
#define BTN2 38

Adafruit_NeoPixel led(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
int colorIndex = 0;
uint32_t colors[] = {
  led.Color(255, 0, 0),   // red
  led.Color(0, 255, 0),   // green
  led.Color(0, 0, 255),   // blue
  led.Color(255, 255, 0), // yellow
  led.Color(255, 0, 255), // magenta
  led.Color(0, 255, 255), // cyan
  led.Color(255, 255, 255) // white
};

void setup() {
  pinMode(BTN1, INPUT_PULLUP);
  pinMode(BTN2, INPUT_PULLUP);
  led.begin();
  led.setBrightness(100);
  led.show();
}

void loop() {
  if (!digitalRead(BTN1)) {      // button 1 pressed
    colorIndex = (colorIndex + 1) % 7;
    led.setPixelColor(0, colors[colorIndex]);
    led.show();
    delay(250); // debounce
  }

  if (!digitalRead(BTN2)) {      // button 2 pressed
    colorIndex = (colorIndex - 1 + 7) % 7;
    led.setPixelColor(0, colors[colorIndex]);
    led.show();
    delay(250); // debounce
  }
}