These libraries no longer build with the new environment for Photon:
ADAFRUIT_TSL2591 (0.0.3)
PIETTETECH_DHT (0.0.3)
ONEWIREUNOFFICIAL (1.4.0)
I think they all have a new version except ADAFRUIT_TSL2591.
So I have two questions.
What’s the best practice to updating your library through the Web IDE?
How can I fix the ADAFRUIT_TSL2591 library?
Thanks for the help.
Here are some of the errors:
lib/Adafruit_TSL2591/src/Adafruit_TSL2591.cpp: In member function 'uint32_t Adafruit_TSL2591::calculateLux(uint16_t, uint16_t)':
lib/Adafruit_TSL2591/src/Adafruit_TSL2591.cpp:179:12: warning: unused variable 'chan0' [-Wunused-variable]
uint32_t chan0, chan1;
^
lib/Adafruit_TSL2591/src/Adafruit_TSL2591.cpp:179:19: warning: unused variable 'chan1' [-Wunused-variable]
uint32_t chan0, chan1;
^
In file included from ./inc/application.h:92:0,
from lib/PietteTech_DHT/src/PietteTech_DHT.cpp:46:
lib/PietteTech_DHT/src/PietteTech_DHT.cpp: In function 'uint16_t makeWord(uint8_t, uint8_t)':
../wiring/inc/spark_wiring_arduino.h:53:19: error: redefinition of 'uint16_t makeWord(uint8_t, uint8_t)'
#define word(...) makeWord(__VA_ARGS__)
^
lib/PietteTech_DHT/src/PietteTech_DHT.cpp:51:10: note: in expansion of macro 'word'
uint16_t word(uint8_t high, uint8_t low) {
^
../wiring/inc/spark_wiring_arduino.h:47:17: error: 'uint16_t makeWord(uint8_t, uint8_t)' previously defined here
inline uint16_t makeWord(uint8_t h, uint8_t l) {
^