Trinket 3.3v and TSL2561

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
techjunky
 
Posts: 4
Joined: Mon Jan 06, 2014 4:41 pm

Trinket 3.3v and TSL2561

Post by techjunky »

trinket tsl2561 neo stick.JPG
trinket tsl2561 neo stick.JPG (675.14 KiB) Viewed 862 times
A little advice please. I've been inspired. Here is the hardware setup:
  • Trinket 3.3v
    TSL2561 lux sensor
    any neopixel (testing with a stick for now)
    solar charger and battery (power)
Goal: Use the reading from the TSL2561 to control the output of the neopixel data line.
Issue: Trinket's SCL(pin2) and SDA(pin0) pins are different from the uno. Do I need to change anything in the TSL2561 libraries to account for this?

Thanks,

Eric

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Trinket 3.3v and TSL2561

Post by adafruit_support_rick »

The TSL2561 libraries need to be modified to work on the trinket.
Which library are you using? There are two

EDIT: I just modified the unified sensor version of the library:
https://github.com/adafruit/Adafruit_TSL2561

Make sure to #include "TinyWireM.h" in your sketch instead of including Wire.h

User avatar
techjunky
 
Posts: 4
Joined: Mon Jan 06, 2014 4:41 pm

Re: Trinket 3.3v and TSL2561

Post by techjunky »

Rick,

Thanks so much. It compiled with your modified library!!!!

Now to code some feedback from the sensor to the neopixels.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”