Project Starter
Waiting for input
Last modified 3mo ago
Table
| ESP32 pin | Net / function | Notes |
|---|---|---|
| GPIO21 | I2C_SDA | ADXL345 and future OLED |
| GPIO22 | I2C_SCL | ADXL345 and future OLED |
| GPIO23 | SD_MOSI | microSD SPI |
| GPIO19 | SD_MISO | microSD SPI |
| GPIO18 | SD_SCK | microSD SPI |
| GPIO13 | SD_CS | Active low |
| GPIO36 | SD_DETECT | Input-only |
| GPIO25 | ADXL_INT1 | Interrupt input |
| GPIO26 | ADXL_INT2 | Interrupt input |
| GPIO4 | OLED_RESET | Reserved; OLED unresolved |
| GPIO27 | LED_R | Active-high MOSFET gate |
| GPIO32 | LED_G | Active-high MOSFET gate |
| GPIO33 | LED_B | Active-high MOSFET gate |
| GPIO34 | BTN1 | Input-only, external pull-up, active low |
| GPIO35 | BTN2 | Input-only, external pull-up, active low |
| GPIO1 / U0TXD | UART_TX | ESP32→CP2102N RXD |
| GPIO3 / U0RXD | UART_RX | CP2102N TXD→ESP32 |
| GPIO0 | ESP_BOOT | Strap; manual and automatic boot, active low |
| EN | ESP_EN | Manual and automatic reset, active low |
esp32. Initialize LED GPIOs low before enabling PWM; configure buttons/card-detect as inputs; initialize I2C on GPIO21/22 and verify ADXL345 address 0x53; initialize SPI on GPIO18/19/23 with CS GPIO13; then mount storage and start application tasks. OLED initialization must remain conditional until the panel is sourced.idf.py build flash monitor.GPIO table from actual schematic
ESP-IDF startup
Programming