Monichrome 128x64 OLED Problems

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
geotek
 
Posts: 65
Joined: Thu Mar 07, 2013 1:39 pm

Monichrome 128x64 OLED Problems

Post by geotek »

Greetings:

I recently purchased a monochrome 128 x 64 OLED that I cannot get working.
I installed the circuitpy.uf2 file and the Circuitpython library files on a laptop running Windows.
The adafruit specs say the I2C address is 0x03 and I am trying to use the display with a RPI -Pico.
Can someone tell me the exact helper files and a demo program that I can use to get the display to work.
I have both Thonny and MU installed but cannot get the display to work at all.
Please help
thanks
Tom

User avatar
urfdvw
 
Posts: 8
Joined: Sun Apr 11, 2021 11:12 pm

Re: Monichrome 128x64 OLED Problems

Post by urfdvw »

Did you download the .mpy libraries from https://circuitpython.org/libraries?

Maybe it is useful to follow this post https://learn.adafruit.com/adafruit-ole ... hon-wiring

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

Re: Monichrome 128x64 OLED Problems

Post by Franklin97355 »

Check out https://learn.adafruit.com/monochrome-oled-breakouts or at least tell us what model number display you got.

User avatar
geotek
 
Posts: 65
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

Post by geotek »

greetings:

I have the Adafruit 0.96" 128x64 OLED Display STEMMA QT Version - I2C Wiring - it appears to have markings indicating I2C default with 0x30 address, ssd1306. Can someone suggest the actual helper files I need for this display and perhaps a code file that I can use to see some text or something. I have tried downloading the the library files adafruit_displayio_ssd1306, adafruit_bus_device, and adafruit_display_text. Is there a simpletext.py or mpy file that I can use to see some text? How do I used/load an mpy file for sample display text?
Any help would be greatly appreciated.
thanks
Tom

User avatar
wildestpixel
 
Posts: 75
Joined: Wed Oct 23, 2019 1:14 am

Re: Monichrome 128x64 OLED Problems

Post by wildestpixel »

As Franklin has suggested if you use the guide at https://learn.adafruit.com/monochrome-oled-breakouts should be fairly easy to follow through to get a Hello world or pixel output to the display via displayio library and supported libraries and the CircuitPython Driver library for the SSD1306 which is the display you have using address either 0x3c or 0x3d.

Everything is within the bundle at https://github.com/adafruit/Adafruit_Ci ... 210616.zip

User avatar
geotek
 
Posts: 65
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

Post by geotek »

Greetings

No great result as of yet
i downloaded the file at https://github.com/adafruit/Adafruit_Ci ... 210616.zip,
I placed the files on the Circuitpy drive (d) a s shown.
i placed a number of the helper files in the LIB folder.
There was a simpl_test.py program which I ran and got an error message on SCL, as shown.
Should this files produce text on the screen? I am using a RPI -Pico - are here pin translations correct for the Pico?
I also downloaded the adafruit_1306.mpy program- should that display text? i don't know how to run the mpy file.
More help needed -Please
Tom
Attachments
Screenshot (8).png
Screenshot (8).png (185.09 KiB) Viewed 208 times
Screenshot (7).png
Screenshot (7).png (884.55 KiB) Viewed 208 times

User avatar
urfdvw
 
Posts: 8
Joined: Sun Apr 11, 2021 11:12 pm

Re: Monichrome 128x64 OLED Problems

Post by urfdvw »

geotek wrote: There was a simpl_test.py program which I ran and got an error message on SCL, as shown.
My experience is that the Pico has a very flexible port definition. You can use a lot of the pins as I2C. So there is not a board.SCL or board.SDA. You can try `dir(board)` to see available port names.
Screenshot 2021-06-19 103650.png
Screenshot 2021-06-19 103650.png (45.6 KiB) Viewed 196 times
Image

Maybe you want to try to use Pin 0 and 1 as SDA and SCL, and specify the ports in the code.

Wish it helps.

User avatar
geotek
 
Posts: 65
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

Post by geotek »

Greetings

I will try using soda and coke as gP0 and GP1.
But Iam still not sure if ai have all the required files for the display on the Circuitpython drive (D) Library folder
Thanks
Tom

User avatar
urfdvw
 
Posts: 8
Joined: Sun Apr 11, 2021 11:12 pm

Re: Monichrome 128x64 OLED Problems

Post by urfdvw »

geotek wrote: But Iam still not sure if ai have all the required files for the display on the Circuitpython drive (D) Library folder
I see. No. looks like the packages in your images are not going to work.

If you are following this guide: https://learn.adafruit.com/monochrome-o ... hon-wiring

you may need the following packages, which are also mentioned in the example code.
  • adafruit_bus_device
    displayio
    terminalio
    adafruit_displayio_ssd1306
    adafruit_display_text

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

Return to “Adafruit CircuitPython”