Replace pin by gpio (#631)

* replace _PIN by _GPIO

* add mention about the goal of -all binaries

* [breaking] change json key from "pin" to "gpio" for actuatorONOFF
This commit is contained in:
Florian authored and GitHub committed 2020-06-13 20:04:36 -05:00
1 parent c9de14e51a
commit c9e6de1a1c
37 files changed
+198 -197

No files matched your search

+10 -10
View File
@@ -42,19 +42,19 @@ extern void MQTTto2G(char* topicOri, JsonObject& SMSdata);
#define _2G_MAX_SIGNAL 1000
/*-------------------PIN DEFINITIONS----------------------*/
#if !defined(_2G_TX_PIN) || !defined(_2G_RX_PIN) || !defined(_2G_PWR_PIN)
#if !defined(_2G_TX_GPIO) || !defined(_2G_RX_GPIO) || !defined(_2G_PWR_GPIO)
# ifdef ESP8266
# define _2G_TX_PIN D6 //D6 to A6 RX,
# define _2G_RX_PIN D7 //D7 to A6 TX
# define _2G_PWR_PIN D5 // connect a MOSFET to power on and off your A6/7 module
# define _2G_TX_GPIO D6 //D6 to A6 RX,
# define _2G_RX_GPIO D7 //D7 to A6 TX
# define _2G_PWR_GPIO D5 // connect a MOSFET to power on and off your A6/7 module
# elif defined(ESP32)
# define _2G_TX_PIN 16 //D16 to A6 RX,
# define _2G_RX_PIN 17 //D17 to A6 TX
# define _2G_PWR_PIN 5 // connect a MOSFET to power on and off your A6/7 module
# define _2G_TX_GPIO 16 //D16 to A6 RX,
# define _2G_RX_GPIO 17 //D17 to A6 TX
# define _2G_PWR_GPIO 5 // connect a MOSFET to power on and off your A6/7 module
# else
# define _2G_TX_PIN 6 //D6 to A6 RX,
# define _2G_RX_PIN 7 //D7 to A6 TX
# define _2G_PWR_PIN 5 // connect a MOSFET to power on and off your A6/7 module
# define _2G_TX_GPIO 6 //D6 to A6 RX,
# define _2G_RX_GPIO 7 //D7 to A6 TX
# define _2G_PWR_GPIO 5 // connect a MOSFET to power on and off your A6/7 module
# endif
#endif