Skip to content

Commit

Permalink
update readme and update cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed May 11, 2019
1 parent 065bffd commit 21207ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ TTGO Badge & TTGO EPaper Series
#include <GxGDE0213B72/GxGDE0213B72.h> // 2.13" b/w
```
- 2019/5/11 The T5_V2.4 version is the same as the T5_V1.2 version pin pin. Add `IO19` to the power amplifier power control. Control IO19 to high level to turn on the power amplifier power supply, low level is off.
-
## First
- For the first time, change the macro definition in `board_def.h` according to the corresponding layout and screen, and change the version to be used to 1.
Expand Down
7 changes: 7 additions & 0 deletions TTGO-Badge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,13 @@ void setup()
{
Serial.begin(115200);
delay(500);

// It is only necessary to turn on the power amplifier power supply on the T5_V24 board.
#ifdef AMP_POWER_CTRL
pinMode(AMP_POWER_CTRL, OUTPUT);
digitalWrite(AMP_POWER_CTRL, HIGH);
#endif

if (SPEAKER_OUT > 0) {
ledcSetup(CHANNEL_0, 1000, 8);
ledcAttachPin(SPEAKER_OUT, CHANNEL_0);
Expand Down
4 changes: 4 additions & 0 deletions board_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

#define SPEAKER_OUT 25

#if TTGO_T5_2_4
#define AMP_POWER_CTRL 19
#endif

#elif TTGO_T5_2_1
#include <GxGDEH029A1/GxGDEH029A1.h> // 2.9" b/w
#define ELINK_BUSY 4
Expand Down

0 comments on commit 21207ea

Please sign in to comment.