mirror of
https://github.com/Fishwaldo/LMIC-node.git
synced 2025-07-05 04:18:24 +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]
|
[platformio]
|
||||||
default_envs =
|
default_envs =
|
||||||
<platformio.ini board selector guard> Comment this line and uncomment one board-id below:
|
<platformio.ini board selector guard> Comment this line and uncomment one board-id below:
|
||||||
;
|
|
||||||
; --- LoRa development boards with integrated LoRa support ---
|
; LoRa development boards with integrated LoRa support:
|
||||||
;
|
|
||||||
; adafruit_feather_m0_lora
|
; Board-id Board name
|
||||||
; disco_l072cz_lrwan1
|
;--------- ----------
|
||||||
; heltec_wifi_lora_32_v2
|
; adafruit_feather_m0_lora ; Adafruit Feather M0 LoRa
|
||||||
; heltec_wifi_lora_32
|
; disco_l072cz_lrwan1 ; Discovery B-L072Z-LRWAN1
|
||||||
; heltec_wireless_stick_lite
|
; heltec_wifi_lora_32_v2 ; Heltec Wifi LoRa 32 V2
|
||||||
; heltec_wireless_stick
|
; heltec_wifi_lora_32 ; Heltec Wifi LoRa 32
|
||||||
; lopy4
|
; heltec_wireless_stick_lite ; Heltec Wireless Stick Lite
|
||||||
; lora32u4II
|
; heltec_wireless_stick ; Heltec Wireless Stick
|
||||||
; ttgo_lora32_v1
|
; lopy4 ; Pycom Lopy4
|
||||||
; ttgo_lora32_v2
|
; lora32u4II ; BSFrance LoRa32u4 II
|
||||||
; ttgo_lora32_v21
|
; ttgo_lora32_v1 ; TTGO LoRa32 V1.3
|
||||||
; ttgo_tbeam_v07
|
; ttgo_lora32_v2 ; TTGO LoRa32 V2.0
|
||||||
; ttgo_tbeam_v10
|
; ttgo_lora32_v21 ; TTGO LoRa32 V2.1.6
|
||||||
;
|
; ttgo_tbeam ; TTGO T-Beam V0.7
|
||||||
; --- Development boards that require an external LoRa module ---
|
; ttgo_tbeam_v1 ; TTGO T-Beam V1.0
|
||||||
;
|
|
||||||
; blackpill_f103c8_128k
|
; Development boards that require an external SPI LoRa module:
|
||||||
; blackpill_f103c8
|
|
||||||
; bluepill_f103c8_128k
|
; Board-id Board name
|
||||||
; bluepill_f103c8
|
;--------- ----------
|
||||||
; lolin_d32_pro
|
; blackpill_f103c8_128k ; Black Pill 128k
|
||||||
; lolin_d32
|
; blackpill_f103c8 ; Black Pill 64k
|
||||||
; lolin32
|
; bluepill_f103c8_128k ; Blue Pill 128k
|
||||||
; nodemcu_32s
|
; bluepill_f103c8 ; Blue Pill 64k
|
||||||
; nodemcuv2
|
; lolin_d32_pro ; Lolin D32 Pro
|
||||||
; pro8mhzatmega328
|
; lolin_d32 ; Lolin D32
|
||||||
; zerousb
|
; lolin32 ; Lolin32
|
||||||
|
; nodemcu_32s ; NodeMCU-32S
|
||||||
|
; nodemcuv2 ; NodeMCU V2
|
||||||
|
; pro8mhzatmega328 ; Arduino Pro Mini 3.3V 8Mhz
|
||||||
|
; zerousb ; Arduino Zero (USB)
|
||||||
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------------------
|
; ------------------------------------------------------------------------------
|
||||||
|
@ -154,7 +158,7 @@ lib_deps =
|
||||||
matthijskooijman/IBM LMIC framework ; [Deprecated] Classic LMIC library
|
matthijskooijman/IBM LMIC framework ; [Deprecated] Classic LMIC library
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
; Default values defined in config.h:
|
; DEFAULT VALUES defined in config.h:
|
||||||
; CFG_sx1276_radio 1
|
; CFG_sx1276_radio 1
|
||||||
; CFG_eu868 1
|
; CFG_eu868 1
|
||||||
; LMIC_DEBUG_LEVEL 0
|
; LMIC_DEBUG_LEVEL 0
|
||||||
|
@ -423,7 +427,7 @@ build_flags =
|
||||||
-D USE_DISPLAY
|
-D USE_DISPLAY
|
||||||
|
|
||||||
|
|
||||||
[env:ttgo_tbeam_v07]
|
[env:ttgo_tbeam]
|
||||||
; TTGO T-Beam versions 0.x (ESP32)
|
; TTGO T-Beam versions 0.x (ESP32)
|
||||||
; No onboard display
|
; No onboard display
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
@ -437,14 +441,14 @@ lib_deps =
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags}
|
${common.build_flags}
|
||||||
${mcci_lmic.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 MONITOR_SPEED=${common.monitor_speed}
|
||||||
-D USE_SERIAL
|
-D USE_SERIAL
|
||||||
-D USE_LED
|
-D USE_LED
|
||||||
; -D USE_DISPLAY ; Requires external I2C OLED display
|
; -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)
|
; TTGO T-Beam version 1.0 (aka T22_08) (ESP32)
|
||||||
; Requires additional library for its AXP192 power management chip
|
; Requires additional library for its AXP192 power management chip
|
||||||
; No onboard display
|
; No onboard display
|
||||||
|
@ -460,7 +464,7 @@ lib_deps =
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags}
|
${common.build_flags}
|
||||||
${mcci_lmic.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 MONITOR_SPEED=${common.monitor_speed}
|
||||||
-D USE_SERIAL
|
-D USE_SERIAL
|
||||||
-D USE_LED
|
-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.
|
* Description: Board Support File for TTGO T-Beam (aka T22) v0.7.
|
||||||
*
|
*
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
* TX <――――――――――> 12
|
* TX <――――――――――> 12
|
||||||
*
|
*
|
||||||
* Definitions: LMIC-node
|
* Definitions: LMIC-node
|
||||||
* board: ttgo_tbeam_v07
|
* board: ttgo_tbeam
|
||||||
* PlatformIO
|
* PlatformIO
|
||||||
* board: ttgo-t-beam
|
* board: ttgo-t-beam
|
||||||
* platform: espressif32
|
* platform: espressif32
|
||||||
|
@ -61,12 +61,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef TTGO_TBEAM_V07_H_
|
#ifndef TTGO_TBEAM_H_
|
||||||
#define TTGO_TBEAM_V07_H_
|
#define TTGO_TBEAM_H_
|
||||||
|
|
||||||
#include "lmic-node.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
|
// Wait for Serial
|
||||||
// Can be useful for boards with MCU with integrated USB support.
|
// 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).
|
* Description: Board Support File for TTGO T-Beam V1.0 (aka T22_08).
|
||||||
*
|
*
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
* USR_SW <――――――――――> 39 (KEY_BUILTIN)
|
* USR_SW <――――――――――> 39 (KEY_BUILTIN)
|
||||||
*
|
*
|
||||||
* Definitions: LMIC-node
|
* Definitions: LMIC-node
|
||||||
* board: ttgo_tbeam_v10
|
* board: ttgo_tbeam_v1
|
||||||
* PlatformIO
|
* PlatformIO
|
||||||
* board: ttgo-t-beam
|
* board: ttgo-t-beam
|
||||||
* platform: espressif32
|
* platform: espressif32
|
||||||
|
@ -75,13 +75,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef TTGO_TBEAM_V10_H_
|
#ifndef TTGO_TBEAM_V1_H_
|
||||||
#define TTGO_TBEAM_V10_H_
|
#define TTGO_TBEAM_V1_H_
|
||||||
|
|
||||||
#include "axp20x.h"
|
#include "axp20x.h"
|
||||||
#include "lmic-node.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
|
// Wait for Serial
|
||||||
// Can be useful for boards with MCU with integrated USB support.
|
// 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
Add a link
Reference in a new issue