mirror of
https://github.com/Fishwaldo/LMIC-node.git
synced 2025-03-16 03:41:32 +00:00
Rename T-Beam board-id's
Add board names to board selector.
This commit is contained in:
parent
baa259e2cb
commit
0514183c1c
3 changed files with 55 additions and 51 deletions
|
@ -29,36 +29,40 @@
|
|||
[platformio]
|
||||
default_envs =
|
||||
<platformio.ini board selector guard> Comment this line and uncomment one board-id below:
|
||||
;
|
||||
; --- LoRa development boards with integrated LoRa support ---
|
||||
;
|
||||
; adafruit_feather_m0_lora
|
||||
; disco_l072cz_lrwan1
|
||||
; heltec_wifi_lora_32_v2
|
||||
; heltec_wifi_lora_32
|
||||
; heltec_wireless_stick_lite
|
||||
; heltec_wireless_stick
|
||||
; lopy4
|
||||
; lora32u4II
|
||||
; ttgo_lora32_v1
|
||||
; ttgo_lora32_v2
|
||||
; ttgo_lora32_v21
|
||||
; ttgo_tbeam_v07
|
||||
; ttgo_tbeam_v10
|
||||
;
|
||||
; --- Development boards that require an external LoRa module ---
|
||||
;
|
||||
; blackpill_f103c8_128k
|
||||
; blackpill_f103c8
|
||||
; bluepill_f103c8_128k
|
||||
; bluepill_f103c8
|
||||
; lolin_d32_pro
|
||||
; lolin_d32
|
||||
; lolin32
|
||||
; nodemcu_32s
|
||||
; nodemcuv2
|
||||
; pro8mhzatmega328
|
||||
; zerousb
|
||||
|
||||
; LoRa development boards with integrated LoRa support:
|
||||
|
||||
; Board-id Board name
|
||||
;--------- ----------
|
||||
; adafruit_feather_m0_lora ; Adafruit Feather M0 LoRa
|
||||
; disco_l072cz_lrwan1 ; Discovery B-L072Z-LRWAN1
|
||||
; heltec_wifi_lora_32_v2 ; Heltec Wifi LoRa 32 V2
|
||||
; heltec_wifi_lora_32 ; Heltec Wifi LoRa 32
|
||||
; heltec_wireless_stick_lite ; Heltec Wireless Stick Lite
|
||||
; heltec_wireless_stick ; Heltec Wireless Stick
|
||||
; lopy4 ; Pycom Lopy4
|
||||
; lora32u4II ; BSFrance LoRa32u4 II
|
||||
; ttgo_lora32_v1 ; TTGO LoRa32 V1.3
|
||||
; ttgo_lora32_v2 ; TTGO LoRa32 V2.0
|
||||
; ttgo_lora32_v21 ; TTGO LoRa32 V2.1.6
|
||||
; ttgo_tbeam ; TTGO T-Beam V0.7
|
||||
; ttgo_tbeam_v1 ; TTGO T-Beam V1.0
|
||||
|
||||
; Development boards that require an external SPI LoRa module:
|
||||
|
||||
; Board-id Board name
|
||||
;--------- ----------
|
||||
; blackpill_f103c8_128k ; Black Pill 128k
|
||||
; blackpill_f103c8 ; Black Pill 64k
|
||||
; bluepill_f103c8_128k ; Blue Pill 128k
|
||||
; bluepill_f103c8 ; Blue Pill 64k
|
||||
; lolin_d32_pro ; Lolin D32 Pro
|
||||
; lolin_d32 ; Lolin D32
|
||||
; lolin32 ; Lolin32
|
||||
; nodemcu_32s ; NodeMCU-32S
|
||||
; nodemcuv2 ; NodeMCU V2
|
||||
; pro8mhzatmega328 ; Arduino Pro Mini 3.3V 8Mhz
|
||||
; zerousb ; Arduino Zero (USB)
|
||||
|
||||
|
||||
; ------------------------------------------------------------------------------
|
||||
|
@ -111,7 +115,7 @@ build_flags =
|
|||
;
|
||||
; If LMIC_DEBUG_LEVEL is set to value > 0 then LMIC_PRINTF_TO will
|
||||
; be automatically set to serial (do not set it explicitly).
|
||||
; -D LMIC_DEBUG_LEVEL=1 ; 0, 1 or 2
|
||||
; -D LMIC_DEBUG_LEVEL=1 ; 0, 1 or 2
|
||||
;
|
||||
; -D CFG_sx1272_radio=1 ; Use for SX1272 radio
|
||||
-D CFG_sx1276_radio=1 ; Use for SX1276 radio
|
||||
|
@ -124,9 +128,9 @@ build_flags =
|
|||
; -D CFG_as923=1
|
||||
; -D CFG_as923jp=1
|
||||
; -D CFG_au915=1
|
||||
; -D CFG_cn490=1 ; Not yet supported
|
||||
; -D CFG_cn783=1 ; Not yet supported
|
||||
; -D CFG_eu433=1 ; Not yet supported
|
||||
; -D CFG_cn490=1 ; Not yet supported
|
||||
; -D CFG_cn783=1 ; Not yet supported
|
||||
; -D CFG_eu433=1 ; Not yet supported
|
||||
-D CFG_eu868=1
|
||||
; -D CFG_in866=1
|
||||
; -D CFG_kr920=1
|
||||
|
@ -154,7 +158,7 @@ lib_deps =
|
|||
matthijskooijman/IBM LMIC framework ; [Deprecated] Classic LMIC library
|
||||
|
||||
build_flags =
|
||||
; Default values defined in config.h:
|
||||
; DEFAULT VALUES defined in config.h:
|
||||
; CFG_sx1276_radio 1
|
||||
; CFG_eu868 1
|
||||
; LMIC_DEBUG_LEVEL 0
|
||||
|
@ -423,7 +427,7 @@ build_flags =
|
|||
-D USE_DISPLAY
|
||||
|
||||
|
||||
[env:ttgo_tbeam_v07]
|
||||
[env:ttgo_tbeam]
|
||||
; TTGO T-Beam versions 0.x (ESP32)
|
||||
; No onboard display
|
||||
platform = espressif32
|
||||
|
@ -437,14 +441,14 @@ lib_deps =
|
|||
build_flags =
|
||||
${common.build_flags}
|
||||
${mcci_lmic.build_flags}
|
||||
-D BSFILE=\"boards/ttgo_tbeam_v07.h\"
|
||||
-D BSFILE=\"boards/ttgo_tbeam.h\"
|
||||
-D MONITOR_SPEED=${common.monitor_speed}
|
||||
-D USE_SERIAL
|
||||
-D USE_LED
|
||||
; -D USE_DISPLAY ; Requires external I2C OLED display
|
||||
|
||||
|
||||
[env:ttgo_tbeam_v10]
|
||||
[env:ttgo_tbeam_v1]
|
||||
; TTGO T-Beam version 1.0 (aka T22_08) (ESP32)
|
||||
; Requires additional library for its AXP192 power management chip
|
||||
; No onboard display
|
||||
|
@ -460,7 +464,7 @@ lib_deps =
|
|||
build_flags =
|
||||
${common.build_flags}
|
||||
${mcci_lmic.build_flags}
|
||||
-D BSFILE=\"boards/ttgo_tbeam_v10.h\"
|
||||
-D BSFILE=\"boards/ttgo_tbeam_v1.h\"
|
||||
-D MONITOR_SPEED=${common.monitor_speed}
|
||||
-D USE_SERIAL
|
||||
-D USE_LED
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
*
|
||||
* File: ttgo_tbeam_v07.h
|
||||
* File: ttgo_tbeam.h
|
||||
*
|
||||
* Description: Board Support File for TTGO T-Beam (aka T22) v0.7.
|
||||
*
|
||||
|
@ -49,7 +49,7 @@
|
|||
* TX <――――――――――> 12
|
||||
*
|
||||
* Definitions: LMIC-node
|
||||
* board: ttgo_tbeam_v07
|
||||
* board: ttgo_tbeam
|
||||
* PlatformIO
|
||||
* board: ttgo-t-beam
|
||||
* platform: espressif32
|
||||
|
@ -61,12 +61,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef TTGO_TBEAM_V07_H_
|
||||
#define TTGO_TBEAM_V07_H_
|
||||
#ifndef TTGO_TBEAM_H_
|
||||
#define TTGO_TBEAM_H_
|
||||
|
||||
#include "lmic-node.h"
|
||||
|
||||
#define DEVICEID_DEFAULT "ttgo-tbeam-v07" // Default deviceid value
|
||||
#define DEVICEID_DEFAULT "ttgo-tbeam" // Default deviceid value
|
||||
|
||||
// Wait for Serial
|
||||
// Can be useful for boards with MCU with integrated USB support.
|
||||
|
@ -130,4 +130,4 @@ bool boardInit(InitType initType)
|
|||
}
|
||||
|
||||
|
||||
#endif // TTGO_TBEAM_V07_H_
|
||||
#endif // TTGO_TBEAM_H_
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
*
|
||||
* File: ttgo_tbeam_v10.h
|
||||
* File: ttgo_tbeam_v1.h
|
||||
*
|
||||
* Description: Board Support File for TTGO T-Beam V1.0 (aka T22_08).
|
||||
*
|
||||
|
@ -63,7 +63,7 @@
|
|||
* USR_SW <――――――――――> 39 (KEY_BUILTIN)
|
||||
*
|
||||
* Definitions: LMIC-node
|
||||
* board: ttgo_tbeam_v10
|
||||
* board: ttgo_tbeam_v1
|
||||
* PlatformIO
|
||||
* board: ttgo-t-beam
|
||||
* platform: espressif32
|
||||
|
@ -75,13 +75,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef TTGO_TBEAM_V10_H_
|
||||
#define TTGO_TBEAM_V10_H_
|
||||
#ifndef TTGO_TBEAM_V1_H_
|
||||
#define TTGO_TBEAM_V1_H_
|
||||
|
||||
#include "axp20x.h"
|
||||
#include "lmic-node.h"
|
||||
|
||||
#define DEVICEID_DEFAULT "ttgo-tbeam-v10" // Default deviceid value
|
||||
#define DEVICEID_DEFAULT "ttgo-tbeam-v1" // Default deviceid value
|
||||
|
||||
// Wait for Serial
|
||||
// Can be useful for boards with MCU with integrated USB support.
|
||||
|
@ -167,4 +167,4 @@ bool boardInit(InitType initType)
|
|||
}
|
||||
|
||||
|
||||
#endif // TTGO_TBEAM_V10_H_
|
||||
#endif // TTGO_TBEAM_V1_H_
|
Loading…
Add table
Reference in a new issue