I have/had 3 major issues and have resolved one of them so far (EEPROM write). Issue number 3 is a killer and the one that is holding me up.
I began with the published Spark core thermostat library from github. The hardware is all wired up according to this image on a breadboard intended to be used (not sparkfun):
I can provide code upon request if it will help. I’m not sure needed yet because if I cannot resolve #3 below I may as well shelve the project.
- Compiler did not like sFLASH. I replaced with built-in EEPROM functions. This was very straightforward to fix and I have not yet posted code how to do that.
- Adafruit_LEDbackup functions do not compile. The compiler complaints are nonsense and when I try the #pragma fixes I get more nonsense. I commented those out for now just to move ahead. The hardware is still riding on the board
- I2C bus status 3 and zero values returned from the HIH temperature sensor. I believe the I2C bus lines need pull-up resistors. The original schematic does not show any. I wonder if the Core had them built in and Photon does not?
So you can see that the I2C issue is a deal breaker. I plan to add pull-up resistors to see it that works.