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

+1 -1
View File
@@ -19,6 +19,6 @@ For VCC5 you can power it directly all the time with an USB cable or use a MOSFE
Don't use the nodemcu/wemos 5V pin for the A6/7 power, use a dedicated power supply for both or dedicated to the A6/7 with at least 2 amps ability.
So as to start your A6/7 module press the red button for 4 seconds, or link the PWR_KEY pin to VCC5.0 for the same time.
So as to start your A6/7 module press the red button for 4 seconds, or link the PWR_KEY GPIO to VCC5.0 for the same time.
![Addon_2G](../img/OpenMQTTgateway_ESP8266_Addon_2G.png)
+1
View File
@@ -3,6 +3,7 @@ This section is usefull if you want to directly flash your ESP from your desktop
Nevertheless you will not be able to change advanced parameters, if you want to do so refer to [Upload from PlatformIO][pio] section.
Download the binary corresponding to your board and gateway [here](https://github.com/1technophile/OpenMQTTGateway/releases) from github and uncompress it.
Note that the -all binary packages are produced for tests only.
## ESP32
* Download the bootloader [here](https://github.com/espressif/arduino-esp32/raw/master/tools/sdk/bin/bootloader_dio_80m.bin)
+1 -1
View File
@@ -31,4 +31,4 @@ home/OpenMQTTGateway/LWT Online
home/OpenMQTTGateway/version
```
Note that the web portal appears only on first boot, if you want to configure again the setting you can do a long press on TRIGGER_PIN or [erase the settings](../use/gateway.md#erase-the-esp-settings).
Note that the web portal appears only on first boot, if you want to configure again the setting you can do a long press on TRIGGER_GPIO or [erase the settings](../use/gateway.md#erase-the-esp-settings).
+2 -2
View File
@@ -31,10 +31,10 @@ Regarding the IR led emitter you can replace it with a normal led and see if it
try with D2 instead of D3
and put
`#define RF_RECEIVER_PIN 4 // D2 on nodemcu`
`#define RF_RECEIVER_GPIO 4 // D2 on nodemcu`
in config_rf.h
instead of
`#define RF_RECEIVER_PIN 0 // D3 on nodemcu`
`#define RF_RECEIVER_GPIO 0 // D3 on nodemcu`
## Exception seen on serial monitor:
Hey I got a callback
+3 -3
View File
@@ -3,7 +3,7 @@
This module enables to actuate things by giving to a PIN a HIGH or LOW value corresponding to an MQTT topic.
Example usage: Connect a transistor to power a relay, connect a led...
So as to pilot the pin use the following commands with [simple receiving](../upload/pio.md#api):
So as to pilot the GPIO use the following commands with [simple receiving](../upload/pio.md#api):
OFF command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setOFF -m 15`
@@ -14,10 +14,10 @@ ON command
or with [json receiving](../upload/pio.md#api)
OFF command:
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"pin":15,"cmd":0}'`
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":0}'`
ON command
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"pin":15,"cmd":1}'`
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":1}'`
## FASTLED
### The FASTLED module support 2 different operation modes