Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttgo-t-beam-Supreme #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ check_flags =
cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK
check_skip_packages = yes

[env:ttgo-t-beam-Supreme]
board = esp32-s3-devkitc-1
build_flags = -Werror -Wall -DTTGO_T_Beam_Supreme

[env:ttgo-t-beam-AXP2101-v1_2]
board = ttgo-t-beam
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_2
Expand Down
25 changes: 24 additions & 1 deletion src/pins.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#ifndef PINS_H_
#define PINS_H_

/*
#undef OLED_SDA
#undef OLED_SCL
#undef OLED_RST

#define OLED_SDA 21
#define OLED_SCL 22
#define OLED_RST 16

*/
#define BUTTON_PIN 38 // The middle button GPIO on the T-Beam

#ifdef TTGO_T_Beam_V0_7
Expand All @@ -21,4 +22,26 @@
#define GPS_TX 34
#endif

#ifdef TTGO_T_Beam_Supreme
#undef OLED_SDA
#undef OLED_SCL
#undef OLED_RST

#define OLED_SDA 17
#define OLED_SCL 18
#define OLED_RST 16

#define GPS_RX 9
#define GPS_TX 8

#define LORA_SCK 12
#define LORA_MISO 13
#define LORA_MOSI 11
#define LORA_CS 10
#define RADIO_DIO0_PIN -1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to my look into the schematics, the DIO0 pin is connected to GPIO 01.
@peterus does the -1 have a special meaning?

Suggested change
#define RADIO_DIO0_PIN -1
#define RADIO_DIO0_PIN 1

#define LORA_RST 5
#define LORA_IRQ 1
#define RADIO_BUSY_PIN 4
#endif

#endif
Loading