Add M5 boards compatibility and low power mode (#586)

This commit is contained in:
Florian authored and GitHub committed 2020-04-26 19:56:10 -05:00
1 parent ac743ed350
commit 30147140bd
18 files changed
+753 -199

No files matched your search

+16 -1
View File
@@ -64,7 +64,7 @@ extra_configs =
[libraries]
arduinojson = ArduinoJson@5.13.4
arduinolog = 1technophile/Arduino-Log#39b0916
arduinolog = 1technophile/Arduino-Log#d13cd80
pubsubclient = PubSubClient@2.7
rc-switch = 1technophile/rc-switch#90adb34
newremoteswitch = 1technophile/NewRemoteSwitch#8eb980e
@@ -89,6 +89,8 @@ wire = Wire
fastled = FastLED@3.3.2
onewire = OneWire
dallastemperature = DallasTemperature
m5stickc = M5StickC@0.2.0
m5stack = M5Stack@0.3.0
smartrc-cc1101-driver-lib = SmartRC-CC1101-Driver-Lib@2.3.5
[env]
@@ -268,6 +270,7 @@ lib_deps =
build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DLOW_POWER_LED=2'
'-DGateway_Name="OpenMQTTGateway_ESP32_BLE"'
[env:esp32-m5stick-ble]
@@ -282,6 +285,8 @@ build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DZgatewayIR="IR"'
'-DLOW_POWER_LED=19'
'-DLOW_POWER_LED_OFF=0'
'-DTRIGGER_PIN=35'
'-DIR_EMITTER_PIN=17'
'-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_BLE_IR"'
@@ -293,12 +298,16 @@ board = m5stack-core-esp32
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.m5stack}
${libraries.ble}
build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DZsensorGPIOInput="GPIOInput"'
'-DZboardM5STACK="M5Stack"'
'-DLOW_POWER_LED=15'
'-DTRIGGER_PIN=37'
'-DSLEEP_BUTTON=38'
'-DGPIOInput_PIN=39'
'-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"'
board_upload.speed = 921600
@@ -310,13 +319,19 @@ board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.ble}
${libraries.m5stickc}
${libraries.irremoteesp}
build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DZgatewayIR="IR"'
'-DZsensorGPIOInput="GPIOInput"'
'-DZboardM5STICKC="M5StickC"'
'-DACTUATOR_ONOFF_PIN=10'
'-DGPIOInput_PIN=37'
'-DLOW_POWER_LED=10'
'-DLOW_POWER_LED_OFF=1'
'-DSLEEP_BUTTON=39'
'-DTRIGGER_PIN=39'
'-DIR_EMITTER_PIN=9'
'-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"'