add m5stick-c board (#473)

This commit is contained in:
Florian authored and GitHub committed 2019-10-22 21:07:59 +02:00
1 parent 6af57f1db5
commit d231c5bda1
2 files changed
+41 -12

No files matched your search

+22 -12
View File
@@ -129,18 +129,28 @@ extern void MQTTtoIR(char * topicOri, JsonObject& RFdata);
#endif
/*-------------------PIN DEFINITIONS----------------------*/
#ifdef ESP8266
#define IR_RECEIVER_PIN 2 //D4 /replace by 4 with sonoff rf bridge
#define IR_EMITTER_PIN 16 //D0/ replace by 0 (D3) if you use IR LOLIN controller shield /replace by 5 with sonoff rf bridge
#elif ESP32
#define IR_RECEIVER_PIN 26
#define IR_EMITTER_PIN 14
#elif __AVR_ATmega2560__
#define IR_RECEIVER_PIN 2 // 2 = D2 on arduino mega
#define IR_EMITTER_PIN 9
#else
#define IR_RECEIVER_PIN 0 // 0 = D2 on arduino UNO
#define IR_EMITTER_PIN 9
#ifndef IR_RECEIVER_PIN
#ifdef ESP8266
#define IR_RECEIVER_PIN 2 //D4 /replace by 4 with sonoff rf bridge
#elif ESP32
#define IR_RECEIVER_PIN 26
#elif __AVR_ATmega2560__
#define IR_RECEIVER_PIN 2 // 2 = D2 on arduino mega
#else
#define IR_RECEIVER_PIN 0 // 0 = D2 on arduino UNO
#endif
#endif
#ifndef IR_EMITTER_PIN
#ifdef ESP8266
#define IR_EMITTER_PIN 16 //D0/ replace by 0 (D3) if you use IR LOLIN controller shield /replace by 5 with sonoff rf bridge
#elif ESP32
#define IR_EMITTER_PIN 14
#elif __AVR_ATmega2560__
#define IR_EMITTER_PIN 9
#else
#define IR_EMITTER_PIN 9
#endif
#endif
#endif
+19
View File
@@ -34,6 +34,7 @@ extra_configs =
;default_envs = esp32dev-pilight
;default_envs = esp32dev-ir
;default_envs = esp32dev-ble
;default_envs = esp32-m5stick-c-ble
;default_envs = ttgo-lora32-v1
;default_envs = nodemcuv2-rf
;default_envs = rf-wifi-gateway
@@ -227,6 +228,24 @@ build_flags =
'-DZgatewayBT="BT"'
'-DGateway_Name="OpenMQTTGateway_ESP32_BLE"'
[env:esp32-m5stick-c-ble]
platform = ${com.esp32_platform}
board = m5stick-c
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.ble}
${libraries.irremoteesp}
build_flags =
${com-esp.build_flags}
'-DZgatewayBT="BT"'
'-DZgatewayIR="IR"'
'-DZsensorGPIOInput="GPIOInput"'
'-DGPIOInput_PIN=37'
'-DIR_EMITTER_PIN=9'
'-DGateway_Name="OpenMQTTGateway_ESP32_M5STICK_C_BLE_IR"'
board_upload.speed = 1500000
[env:ttgo-lora32-v1]
platform = ${com.esp32_platform}
board = ttgo-lora32-v1