xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
2.99k stars 636 forks source link

How to configure H801 with arduino IDE #168

Closed xoseperez closed 6 years ago

xoseperez commented 7 years ago

Originally reported by: azer (Bitbucket: zerros, GitHub: zerros)


HI,

forgive me for my basg english. I've juste seen that espurna could control H801 wifi devices. I have some at home but I don't use pio. I've downloaded the 1.8.2 version but I can't find any reference to "ENABLE_HLW801". My led strip is a RGB2W (in reality RGB 1W).

I can't find any file in "code/espurna/h801.ino".

How can I configure it with arduino. Thanks;

xoseperez commented 7 years ago

Removing milestone: 1.8.3 (automated comment)

xoseperez commented 7 years ago

Pushed with 1.8.3.

xoseperez commented 7 years ago

Original comment by azer (Bitbucket: zerros, GitHub: zerros):


thanks. I've tried on another computer with pio to upload the bin file and it worked but I have few issues (brigthness and switch status on boot).

I'll try with the 1.8.3 with arduino. It seems that I can configure precisely with arduino than the bin file. thanks

xoseperez commented 7 years ago

Edit the code/espurna/config/arduino.h file and add the following line:

#define H801_LED_CONTROLLER

This is missing in the current version. Will fix it soon.