обновлены пины под pcb
This commit is contained in:
@@ -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.
@@ -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 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user