обновлены пины под pcb

This commit is contained in:
2026-08-10 00:41:18 +03:00
parent 7db164b979
commit 9d474eb62b
3 changed files with 12 additions and 6 deletions

View File

@@ -15,8 +15,10 @@ constexpr uint8_t GPIO_RX = 4;
constexpr uint8_t GPIO_BUTTON_MODE = 0;
constexpr uint8_t GPIO_BUTTON_START = 1;
#else
constexpr uint8_t GPIO_BUTTON_MODE = 1;
constexpr uint8_t GPIO_BUTTON_START = 0;
constexpr uint8_t GPIO_BUTTON_MODE = 20;
constexpr uint8_t GPIO_BUTTON_START = 10;
constexpr uint8_t GPIO_VBAT = 2;
constexpr uint8_t GPIO_ANALOG_RX = 0;
#endif
constexpr uint8_t GPIO_SDA = 6;
constexpr uint8_t GPIO_SCL = 7;
@@ -34,10 +36,12 @@ constexpr uint8_t GPIO_SCL = 9;
// contacts as on the C3 SuperMini. Signals therefore follow header position.
constexpr uint8_t GPIO_PWM = 12;
constexpr uint8_t GPIO_RX = 13;
constexpr uint8_t GPIO_BUTTON_MODE = 10;
constexpr uint8_t GPIO_BUTTON_START = 9;
constexpr uint8_t GPIO_BUTTON_MODE = 5;
constexpr uint8_t GPIO_BUTTON_START = 4;
constexpr uint8_t GPIO_SDA = 44;
constexpr uint8_t GPIO_SCL = 1;
constexpr uint8_t GPIO_VBAT = 11;
constexpr uint8_t GPIO_ANALOG_RX = 9;
#endif
#else
#error "Only ESP32-C3 and ESP32-S3 are supported"

Binary file not shown.

View File

@@ -61,8 +61,10 @@ Arduino sketch находится в каталоге `OpticalChannelTester`:
|---|---:|---:|
| PWM output | GPIO 3 | GPIO 12 |
| Optical RX input | GPIO 4 | GPIO 13 |
| START | GPIO 0 | GPIO 9 |
| MODE | GPIO 1 | GPIO 10 |
| START | GPIO 10 | GPIO 4 |
| MODE | GPIO 20 | GPIO 5 |
| VBAT | GPIO 2 | GPIO 11 |
| Analog RX | GPIO 0 | GPIO 9 |
| OLED SDA | GPIO 6 | GPIO 44 |
| OLED SCL | GPIO 7 | GPIO 1 |