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?
teensy 3.0 and 128x32 OLED
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 6
- Joined: Mon Oct 14, 2013 12:09 pm
Re: teensy 3.0 and 128x32 OLED
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:
What's wrong? =/
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
- paulstoffregen
- Posts: 444
- Joined: Sun Oct 11, 2009 11:23 am
Re: teensy 3.0 and 128x32 OLED
You have an old version of Teensyduino installed, from before TWBR emulation was supported.ribas wrote: What's wrong? =/
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.
- paulstoffregen
- Posts: 444
- Joined: Sun Oct 11, 2009 11:23 am
Re: teensy 3.0 and 128x32 OLED
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....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?
- paulstoffregen
- Posts: 444
- Joined: Sun Oct 11, 2009 11:23 am
Re: teensy 3.0 and 128x32 OLED
I just retested this, to make sure it's really working. Here's a 1 minute video.
http://www.youtube.com/watch?v=vhr06BXuRLg
http://www.youtube.com/watch?v=vhr06BXuRLg
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: teensy 3.0 and 128x32 OLED
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
https://github.com/adafruit/Adafruit_SS ... 8fd71c6cc1
-
- Posts: 6
- Joined: Mon Oct 14, 2013 12:09 pm
Re: teensy 3.0 and 128x32 OLED
It's working fine for me now. Using last version of the library.
Thanks for help!
Thanks for help!
- paulstoffregen
- Posts: 444
- Joined: Sun Oct 11, 2009 11:23 am
Re: teensy 3.0 and 128x32 OLED
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.
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.
Please be positive and constructive with your questions and comments.