powerpods/main/powerpod.h
simon 1ad527119d Add board input driver for button and LiPo ADC logging.
TODO: Hardware pinning in powerpod.h (TASTER_GPIO, V_LIPO_1/2_GPIO) does not
match final hardware yet — verify against schematic before production.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-19 00:16:40 +02:00

20 lines
530 B
C

#ifndef POWERPOD_H
#define POWERPOD_H
#define DIP_MASTER 4
#define I2C_SCL 5
#define I2C_SDA 6
#define I2C_PORT 0
#define IO_EXPANDER_ADDRESS 0x20
/* TODO: Hardware pinning not finalized — verify against schematic before production. */
/** Front-panel button (active low, internal pull-up). */
#define TASTER_GPIO 12
/** LiPo voltage sense inputs (ADC1-capable GPIOs). */
#define V_LIPO_1_GPIO 1
/** Shares GPIO with TASTER on current bench wiring; second ADC is skipped in board_input.c. */
#define V_LIPO_2_GPIO 12
#endif