0

Trinket M0 with Oled Screen
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trinket M0 with Oled Screen

by gman123 on Sat May 04, 2019 2:09 pm

Hey guys, I'm working on a project where I have to connect the Trinket M0 https://www.adafruit.com/product/3500 to this OLED screen https://www.adafruit.com/product/938 . Does anyone know how I should wire it and if there are any circuit python libraries/example code I could use for it. Any help would be appreciated.
Thank You!

gman123
 
Posts: 7
Joined: Sat May 04, 2019 1:39 pm

Re: Trinket M0 with Oled Screen

by Kidkill on Wed May 08, 2019 8:11 pm

Hey,
I have these two set up with a humidity/temp sensor. I'm using i2c, Data to pin 0, clk to pin 2, rst to pin 4. I'm also using arduino IDE and the example codes that come with the the libraries (my adaptation is attached). Have you read over the instructions here: https://learn.adafruit.com/monochrome-oled-breakouts . There is a lot of information and options, are you having any specific problems?
Attachments
DHT_trinket_M0.ino
(1.86 KiB) Downloaded 45 times

Kidkill
 
Posts: 34
Joined: Mon Mar 18, 2019 7:21 pm

Re: Trinket M0 with Oled Screen

by gman123 on Wed May 08, 2019 10:33 pm

Thank you for the wiring info, but is there any library for circuitpython?

gman123
 
Posts: 7
Joined: Sat May 04, 2019 1:39 pm

Re: Trinket M0 with Oled Screen

by Kidkill on Wed May 08, 2019 10:54 pm

I really don't use circuit python, but this would probably be the direction I would look. https://learn.adafruit.com/adafruit-ole ... thon-setup
Good luck!

Kidkill
 
Posts: 34
Joined: Mon Mar 18, 2019 7:21 pm

Re: Trinket M0 with Oled Screen

by gman123 on Thu May 09, 2019 11:05 am

Okay, thank you! If somebody is trying to do the same thing as me, I found another tutorial: https://diyprojects.io/oled-display-ssd ... NRA7dNKigQ

gman123
 
Posts: 7
Joined: Sat May 04, 2019 1:39 pm

Re: Trinket M0 with Oled Screen

by Kidkill on Thu May 09, 2019 12:00 pm

One last thing to think about, idk if that oled has pullups on the i2c, you might need to put some external resistors on there. Let me know if you need suggestions on that.

Kidkill
 
Posts: 34
Joined: Mon Mar 18, 2019 7:21 pm

Re: Trinket M0 with Oled Screen

by gman123 on Thu May 09, 2019 4:30 pm

Why would I need some external resistors? And what are "pullups"

gman123
 
Posts: 7
Joined: Sat May 04, 2019 1:39 pm

Re: Trinket M0 with Oled Screen

by Kidkill on Thu May 09, 2019 4:51 pm

I'm not the best person to try to explain that, I don't think I really have a great understanding myself, but I believe the resistors "pull" the pins to the "on" state. If you're having trouble with the display communicating with the trinket, I'd try putting a 10k ohm resistor between the 0 pin and the 3v3, and another one between the 2 pin and the 3v3.

Kidkill
 
Posts: 34
Joined: Mon Mar 18, 2019 7:21 pm

Re: Trinket M0 with Oled Screen

by franklin97355 on Thu May 09, 2019 9:51 pm

https://www.elprocus.com/pull-up-and-pull-down-resistors-with-applications/ If the board does not have built-in resistors for the i2c lines you would need to provide them to ensure reliable operation.

franklin97355
 
Posts: 21216
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.