diff --git a/OpticalChannelTester/Config.h b/OpticalChannelTester/Config.h index c10efe2..d6aa8f3 100644 --- a/OpticalChannelTester/Config.h +++ b/OpticalChannelTester/Config.h @@ -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" diff --git a/PCB/OptoTest.PcbDoc b/PCB/OptoTest.PcbDoc index fca8432..7e04fdd 100644 Binary files a/PCB/OptoTest.PcbDoc and b/PCB/OptoTest.PcbDoc differ diff --git a/README.md b/README.md index 5b95378..5761509 100644 --- a/README.md +++ b/README.md @@ -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 |