xoseperez / espurna

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

Error compiling (my92xx.h: No such file or directory) #346

Closed xoseperez closed 6 years ago

xoseperez commented 6 years ago

Originally reported by: ferbulous (Bitbucket: ferbulous, GitHub: ferbulous)


Hi, not exactly sure what I'm missing here, I'm trying to update to the latest espurna firmware

But I keep getting this error

Arduion IDE can still compile older firmware without any issues though.

#!arduino

In file included from sketch\config/all.h:5:0,

                 from C:\Users\Keelium\Downloads\Compressed\xoseperez-espurna-080088e5acce\code\espurna\espurna.ino:22:

sketch\config/prototypes.h:88:20: fatal error: my92xx.h: No such file or directory

 #include <my92xx.h>

Any advice on how I can fix this?

xoseperez commented 6 years ago

Removing milestone: 1.11.2 (automated comment)

xoseperez commented 6 years ago

Released with 1.11.2

xoseperez commented 6 years ago

OK, the problem is that LIGHT_PROVIDER_MY92XX is not defined when the prototype.h file is processed. To solve it jusy swap the lines of the prototype.h and general.h includes in the all.h file. Besides, that whole include can be removed... fixed in dev branch.

xoseperez commented 6 years ago

Original comment by ferbulous (Bitbucket: ferbulous, GitHub: ferbulous):


No, I'm actually compiling for the YJZK switch. I tried uploading the firmware directly by OTA but it bricked the switch for some reason.

The LEDs are on but the switch is not responding nor accessible by wifi

Ok, I'll add that to the library.

xoseperez commented 6 years ago

You are building an image with the LIGHT_PROVIDER set to LIGHT_PROVIDER_MY92XX, right? This is for some light bulbs out there, like the Sonoff B1, the Arilux E27 or the AiThinker AiLight. Then you will need this library:

https://github.com/xoseperez/my92xx