Added RF control

gitolicious 2018-09-04 20:14:49 +02:00
parent 5a9793f5b7
commit 9d757fa393
1 changed files with 20 additions and 1 deletions

@ -19,7 +19,7 @@ I found that on the back it has pads to solder to so you can flash it.
<img width="40%" src="https://user-images.githubusercontent.com/816454/43895057-6f80d178-9c17-11e8-8c6f-535d31ea0603.jpg" alt="board back">
The `IO0` port is `GPIO0` that needs to be pulled to ground when powered on for flashing (as per all ESP devices). I soldered cables to each of these. Note that some are very close to other pads, so be careful.
The `IO0` port is `GPIO0` that needs to be pulled to ground when powered on for flashing (as per all ESP devices). I soldered cables to each of these. Note that some are very close to other pads, so be careful. If you want to avoid soldering, also pogo pins work well with the pads.
<img width="40%" src="https://user-images.githubusercontent.com/816454/43895056-6f41e094-9c17-11e8-95b7-cf565967c89e.jpg" alt="board back with cables">
@ -46,5 +46,24 @@ Once the above was done and the device rebooted, I could set the colors using co
mosquitto_pub -h openhab.sf -t 'cmnd/rgbled/color' -m '#ff0000ff'
```
### RF control
If you have the RF variant, you will want to configure the GPIOs like this:
```
{ "MagicHome RF", // Magic Home RF (ESP8266) - (Arilux LC10)
GPIO_USER, // GPIO00 Optional Button
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
GPIO_LED1_INV, // GPIO02 Blue onboard LED (optional)
GPIO_USER, // GPIO03 Serial TXD and Optional sensor0
GPIO_ARIRFRCV, // GPIO04 RF receiver input
GPIO_PWM2, // GPIO05 RGB LED Green
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_PWM3, // GPIO12 RGB LED Blue
GPIO_PWM4, // GPIO13 RGBW LED White
GPIO_PWM1, // GPIO14 RGB LED Red
GPIO_LED2_INV, // GPIO15 RF receiver control
0, 0
},
```
After chosing the correct module type in your Tasmota configuration, press a key on the remote after boot for the device to learn your code.