User Manual

Enabling the TSL2561 Luminosity Sensor (Optional)
You can also enable the TSL2561 light sensor (http://adafru.it/439) to demonstrate how to work with the
Adafruit_Sensor library to read sensor data on the WICED Feather.
To enable the TSL2561 in your sketch, simply set the SENSOR_TSL2561_ENABLED flag to '1':
This will cause the WICED Feather to read a new data sample from the TSL2561 every ten (10) seconds.
The TSL2561 should be connected to the WICED Feather as follows:
TSL2561 SCL to WICED SCL
TSL2561 SDA to WICED SDA
TSL2561 VIN to WICED 3V
TSL2561 GND to WICED GND
Enabling MQTT to Adafruit IO (Optional)
You can optionally push the sensor data to Adafruit IO using the AdafruitAIO helper class.
To enable MQTT (https://adafru.it/m3c) to Adafruit IO support simply set the AIO_ENABLED flag to '1':
You also need to enter your AIO Username and your AIO key, as well as the target feeds that data should be published
to:
For more information on communication with Adafruit IO via MQTT see the Adafruit IO MQTT API (https://adafru.it/m3d).
Compile and Flash
#define SENSOR_TSL2561_ENABLED 1
#define AIO_ENABLED 1
#define AIO_USERNAME "...your AIO username (see https://accounts.adafruit.com)..."
#define AIO_KEY "...your AIO key..."
#define FEED_VBAT "vbat"
#define FEED_TSL2561_LUX "lux"
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 194 of 202