adafruit / Adafruit_TSL2591_Library

This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
58 stars 48 forks source link

add support for ESP32 (in the same way as for ESP8266) #16

Closed hamishcunningham closed 7 years ago

hamishcunningham commented 7 years ago

ESP32 has the same location for pgmspace.h as ESP8266; this patch simply checks for the ESP32 preprocessor macro in the same place as the existing code checks for the ESP8266 macro, and does the same thing (include pgmspace.h instead of avr/pgmspace.h) if it is defined.