Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MATRIX

Our weekly LIVE video chat. Every Wednesday at 8pm ET!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
waleedk
 
Posts: 4
Joined: Mon Jul 22, 2013 3:10 pm

Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MATRIX

Post by waleedk »

I want to run the LED matrix and do some scrolling message displays.
I have a 5V 2Amp power supply that i can hook up to the 5V trinket

Can i perform the same demo as shown on the product page using the trinket instead of the UNO as shown,

Thanks

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

Re: Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MA

Post by adafruit_support_rick »

Good question. Technically, it should work.

But, I just tried compiling the demo for Trinket, and I'm getting compile errors. Don't really understand what the problem is.

User avatar
ishback
 
Posts: 33
Joined: Tue Mar 04, 2014 9:50 pm

Re: Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MA

Post by ishback »

I'm also interested in running the 8x8 Matrix with the Trinket, using the LEDBackpack and Adafruit_GFX libraries. I got a bunch of errors when compiling, all similar to this:
'/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/utility/twi.c:390: error: 'TWEN' undeclared (first use in this function)'

probably same as you guys. Does anyone know what could be the problem?

Thanks

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MA

Post by Franklin97355 »

Are you using the TinyWire library?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MA

Post by pburgess »

The Backpack & GFX libraries don't work on the Trinket...there simply isn't enough program space.

If you have a look at the Space Invader pendant tutorial, you can see how this does 'raw' writes to the display (and using the TinyWireM library)...it's pretty low-level stuff because of the Trinket's size constraints.

User avatar
ishback
 
Posts: 33
Joined: Tue Mar 04, 2014 9:50 pm

Re: Trinket + SMALL 1.2" 8X8 ULTRA BRIGHT SQUARE BLUE LED MA

Post by ishback »

I just tried the example on AdafruitLEDBackpack named HT16K33 and the Backpack and GFX libraries worked just well - it's a tiny sketch. I tried with my own sketch and I had to reduce the file and modify the libraries to adapt them to what I just need, to keep the sketch under the 5,310 max for the Trinket, and it worked too.

I used a few of these tricks to reduce my sketch: http://www.instructables.com/id/Make-an ... libraries/

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

Return to “Ask an Engineer! VIDEO CHAT (closed)”