Skip to content

Commit a850760

Browse files
feat(xiao esp32c5): Add definitions for battery voltage sampling pin and enable pin (espressif#12086)
* feat(xiao esp32c5): Add definitions for the battery voltage sampling pin and the enable pin * Modify pin definition name Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
1 parent 287b689 commit a850760

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

variants/XIAO_ESP32C5/pins_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ static const uint8_t D8 = 8;
3939
static const uint8_t D9 = 9;
4040
static const uint8_t D10 = 10;
4141

42+
static const uint8_t BAT_VOLT_PIN = 6;
43+
static const uint8_t BAT_VOLT_PIN_EN = 26;
44+
4245
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)