Skip to content

Commit 489feb8

Browse files
OttoWinterme-no-dev
authored andcommittedJan 22, 2019
Fix BananaPi-BIT and T-Beam pin definitions (#2343)
* Fix BananaPi-BIT DAC definition * Update t-beam too
1 parent 3350476 commit 489feb8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎variants/bpi-bit/pins_arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static const uint8_t P16 = 5;
5656
static const uint8_t P19 = 22;
5757
static const uint8_t P20 = 21;
5858

59-
static const uint8_t DAC1 = 26;
60-
static const uint8_t DAC2 = 25;
59+
static const uint8_t DAC1 = 25;
60+
static const uint8_t DAC2 = 26;
6161

62-
#endif /* Pins_Arduino_h */
62+
#endif /* Pins_Arduino_h */

‎variants/t-beam/pins_arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ static const uint8_t T1 = 0;
5454
static const uint8_t T2 = 2;
5555
static const uint8_t T4 = 13;
5656
static const uint8_t T6 = 14;
57-
static const uint8_t T8 = 32;
58-
static const uint8_t T9 = 33;
57+
static const uint8_t T8 = 33;
58+
static const uint8_t T9 = 32;
5959

60-
static const uint8_t DAC2 = 25;
60+
static const uint8_t DAC2 = 26;
6161

6262
#endif /* Pins_Arduino_h */

1 commit comments

Comments
 (1)

cyberman54 commented on Jan 22, 2019

@cyberman54
Contributor

@OttoWinter There is no GPIO26 pin on TTGO T-Beam boards, only GPIO25 is wired to a pin, it's pin nr. 6 in header connector U12.

ESP32 has two 8-bit DAC, connected to GPIO25 (Channel 1) and GPIO26 (Channel 2).

So for T-Beam board we have DAC1 = 25 and no DAC2.

Please sign in to comment.