Unable to load sketch for 128x32 I2C OLED display

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
narno
 
Posts: 4
Joined: Sat Sep 20, 2014 5:07 pm

Unable to load sketch for 128x32 I2C OLED display

Post by narno »

Hello,

I am trying to get my monochrome 128x32 I2C display to work with my brand new Trinket Pro 5V. I was able to successfully load the blink code onto the trinket so this one looks to work fine. Similarly I could load the corresponding File→Sketchbook→Libraries→Adafruit_SSD1306→SSD1306... on my regular Arduino Uno. The OLED display works exactly as explained in the excellent tutorial at https://learn.adafruit.com/monochrome-o ... 2c-display (I made sure to set the right screen size of the display in the header).

Unfortunately, when trying to connect the OLED display to the Trinket, uploading the same ssd1306_128x32_i2c sketch does not work at all. Compiling is fine but uploading ends up with the following messages:

avrdude: verification error, first mismatch at byte 0x0108
0x00 != 0xff
avrdude: verification error; content mismatch

I have tried to reduce the size of the sketch but that did not change a single thing.

EDIT: I just tried to use a NeoPixel Stick 8 x WS2812 5050 RGB and a similar issue is poping up. Stick is working fine (strandtest) with the Arduino Uno but the Trinket Pro refuses to upload the code.

EDIT2: testing the GPIOs with a single led & resistor works fine.

Any idea? I am running Windows 7 and successfully programmed gemma recently (in case that would conflict?)

Thanks all,
Arnaud

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

Re: Unable to load sketch for 128x32 I2C OLED display

Post by adafruit_support_rick »

I just loaded the ssd1306 example sketch onto my Pro Trinket with no problems. You've probably got a marginal USB cable. Do you have a different one you can try? Also, try a different USB port.

User avatar
narno
 
Posts: 4
Joined: Sat Sep 20, 2014 5:07 pm

Re: Unable to load sketch for 128x32 I2C OLED display

Post by narno »

Hi Rick,
Thank you for your help. I just tried a different cable and a different USB port. No change at all. Still capable of uploding the blink sketch but not more. See pictures of the setup & result.
Note that I am using the LiPo backpack. could this be an issue?
thanks,
Arnaud
Attachments
Outputs of Arduino sketch upload
Outputs of Arduino sketch upload
Capture.JPG (102.26 KiB) Viewed 366 times
Wiring pic
Wiring pic
IMAG0233.jpg (733.98 KiB) Viewed 366 times

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Unable to load sketch for 128x32 I2C OLED display

Post by adafruit2 »

hmm we have loaded up OLED sketches lots of times, lets get you another protrinket - email support@adafruit with a link to this thread to get a new one!

User avatar
narno
 
Posts: 4
Joined: Sat Sep 20, 2014 5:07 pm

Re: Unable to load sketch for 128x32 I2C OLED display

Post by narno »

Hi Adafruit,
I have received the replacement trinket and I am delighted to share that the new one works like a charm!
Thank you again for the support,
Arnaud

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

Re: Unable to load sketch for 128x32 I2C OLED display

Post by adafruit_support_rick »

Glad to hear it! Thanks for posting

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

Return to “Trinket ATTiny, Trinket M0”