Skip to content

Commit

Permalink
just adding support for a board that is board that is nearly identica…
Browse files Browse the repository at this point in the history
…l to the original tbeam

Signed-off-by: Brenton Poke <[email protected]>
  • Loading branch information
BrentonPoke committed Oct 31, 2024
1 parent f83e22a commit 32e0bc2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void setup() {


//Set the Device ID
duck.setDeviceId(devId);
duck.setDeviceId(deviceId);
// initialize the serial component with the hardware supported baudrate
duck.setupSerial(115200);
// initialize the LoRa radio with specific settings. This will overwrites settings defined in the CDP config file cdpcfg.h
Expand Down
15 changes: 14 additions & 1 deletion examples/Custom-Mama-Examples/Custom-Mama-Example/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,17 @@ description = Custom Mama examples
monitor_filters = time
lib_deps =
${env:esp32.lib_deps}
${env:local_cdp.lib_deps}
${env:local_cdp.lib_deps}

[env:local_ttgo_lora32_v1_3]
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
monitor_speed = 115200
monitor_filters = time
lib_deps =
${env:esp32.lib_deps}
${env:local_cdp.lib_deps}
build_flags =
${env.build_flags}
-DTTGO_1_3
10 changes: 10 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@
lewisxhe/XPowersLib@^0.1.5
build_flags =
${env.build_flags}

[env:ttgo_lora32_v1_3]
extends = esp32_base
board = ttgo-lora32-v1
lib_deps =
${env:esp32_base.lib_deps}
build_flags =
${env.build_flags}
-DTTGO_1_3

;;--------------------------------------------------------------------------------
;; test environments
;;--------------------------------------------------------------------------------
Expand Down
11 changes: 10 additions & 1 deletion src/include/boards/ttgo_t_beam_v1_sx1276.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@

#define CDPCFG_GPS_RX 34
#define CDPCFG_GPS_TX 12
// OLED display settings
// OLED display settings for TTGO LoRa32 V1.3
//#define CDPCFG_PIN_OLED_ROTATION U8G2_R0
#ifdef TTGO_1_3
#define CDPCFG_PIN_OLED_CLOCK 15
#define CDPCFG_PIN_OLED_DATA 4

#else
#define CDPCFG_GPS_RX 34
#define CDPCFG_GPS_TX 12

#define CDPCFG_PIN_OLED_CLOCK 22
#define CDPCFG_PIN_OLED_DATA 21
#endif
#define CDPCFG_PIN_OLED_RESET 16

#endif

0 comments on commit 32e0bc2

Please sign in to comment.