teensy 3.0 and 128x32 OLED

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
joey120373
 
Posts: 7
Joined: Thu Apr 19, 2012 12:57 am

teensy 3.0 and 128x32 OLED

Post by joey120373 »

I have successfully loaded the example code for the 128x32 I2C OLED display onto a teensy 3.0, and it is working, sort of.

I made sure the .h file is correct for this size display, however, only the top half of the display is working, and the graphics that are displayed are shifted up 16 lines, any ideas?

ribas
 
Posts: 6
Joined: Mon Oct 14, 2013 12:09 pm

Re: teensy 3.0 and 128x32 OLED

Post by ribas »

That's more than what I get!

I also have Teensy 3.0 and the I2C OLED. I also changed the .h file to reflect the right display.

However, when compiling the base example, this error shows up:

Code: Select all

.../Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::display()':
.../Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:410:26: error: 'TWBR' was not declared in this scope
What's wrong? =/

User avatar
paulstoffregen
 
Posts: 444
Joined: Sun Oct 11, 2009 11:23 am

Re: teensy 3.0 and 128x32 OLED

Post by paulstoffregen »

ribas wrote: What's wrong? =/
You have an old version of Teensyduino installed, from before TWBR emulation was supported.

Simply install the latest version and this problem will go away.

http://www.pjrc.com/teensy/td_download.html
Last edited by paulstoffregen on Tue Jan 28, 2014 8:29 am, edited 1 time in total.

User avatar
paulstoffregen
 
Posts: 444
Joined: Sun Oct 11, 2009 11:23 am

Re: teensy 3.0 and 128x32 OLED

Post by paulstoffregen »

joey120373 wrote:however, only the top half of the display is working, and the graphics that are displayed are shifted up 16 lines, any ideas?
On this one, I'm not sure. I have the Adafruit 128x32 OLED here and it works perfectly. I do not have their 128x64 OLED. Looks like I'll need to get one to investigate this problem....

User avatar
paulstoffregen
 
Posts: 444
Joined: Sun Oct 11, 2009 11:23 am

Re: teensy 3.0 and 128x32 OLED

Post by paulstoffregen »

I just retested this, to make sure it's really working. Here's a 1 minute video.

http://www.youtube.com/watch?v=vhr06BXuRLg

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

Re: teensy 3.0 and 128x32 OLED

Post by pburgess »

There were some recent changes to this library, it's possible something may have broken along the way. Would you mind installing the prior version and see if things work any better? It can be downloaded here:

https://github.com/adafruit/Adafruit_SS ... 8fd71c6cc1

ribas
 
Posts: 6
Joined: Mon Oct 14, 2013 12:09 pm

Re: teensy 3.0 and 128x32 OLED

Post by ribas »

It's working fine for me now. Using last version of the library.

Thanks for help!

User avatar
paulstoffregen
 
Posts: 444
Joined: Sun Oct 11, 2009 11:23 am

Re: teensy 3.0 and 128x32 OLED

Post by paulstoffregen »

Phil, that's the SPI version.

If you'd like me to retest that, or the I2C one, just post a link. I have both formats hooked up here with the 128x32 size.

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

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”