@@ -49,6 +49,7 @@ extra_configs =
4949; default_envs = esp32-m5stick-cp-ble
5050; default_envs = esp32-m5atom
5151; default_envs = ttgo-lora32-v1
52+ ; default_envs = ttgo-t-beam
5253; default_envs = nodemcuv2-rf
5354; default_envs = nodemcuv2-rf-cc1101
5455; default_envs = nodemcuv2-somfy-cc1101
@@ -497,6 +498,36 @@ build_flags =
497498 ' -DZgatewayLORA="LORA"'
498499 ' -DGateway_Name="OpenMQTTGateway_ESP32_LORA"'
499500
501+ [env:ttgo-t-beam]
502+ # See version pinout differences here
503+ # https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-3/18436
504+ platform = ${com.esp32_platform}
505+ board = ttgo-t-beam
506+ lib_deps =
507+ ${com-esp.lib_deps}
508+ ${libraries.ble}
509+ ${libraries.lora}
510+ build_flags =
511+ ${com-esp.build_flags}
512+ ' -DZgatewayLORA="LORA"'
513+ ' -DZgatewayBT="BT"'
514+ ' -DGateway_Name="OpenMQTTGateway_ESP32_BLE_LORA"'
515+
516+ ' -DLED_RECEIVE=21' # T-BEAM board V0.5
517+ # '-DLED_RECEIVE=14' # T-BEAM board V0.7
518+ # '-DLED_RECEIVE=4' # T-BEAM board V1.0+
519+ ' -DTimeLedON=0.05'
520+ ' -DLED_RECEIVE_ON=1' # Set 0 for board V1.0+
521+
522+ # for V0.5 and V0.7 ONLY (V1.0+ as onboard AXP202 dedicated chip, need driver)
523+ # it's a 100K/100K divider (so 2 divider) and connected to GPIO35
524+ ' -DZsensorADC="ADC"'
525+ ' -DADC_GPIO=35'
526+ ' -DADC_DIVIDER=2'
527+ # Reading battery level every minutes should be more than enought
528+ ' -DTimeBetweenReadingADC=60000'
529+
530+
500531[env:nodemcuv2-all-test]
501532platform = ${com.esp8266_platform}
502533board = nodemcuv2
0 commit comments