0

Monichrome 128x64 OLED Problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Monichrome 128x64 OLED Problems

by geotek on Thu Jun 17, 2021 7:55 pm

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

geotek
 
Posts: 54
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

by urfdvw on Thu Jun 17, 2021 8:37 pm

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

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

Re: Monichrome 128x64 OLED Problems

by franklin97355 on Thu Jun 17, 2021 8:52 pm

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

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

Re: Monichrome 128x64 OLED Problems

by geotek on Thu Jun 17, 2021 9:21 pm

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

geotek
 
Posts: 54
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

by wildestpixel on Fri Jun 18, 2021 12:37 am

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

wildestpixel
 
Posts: 65
Joined: Wed Oct 23, 2019 1:14 am

Re: Monichrome 128x64 OLED Problems

by geotek on Fri Jun 18, 2021 6:40 pm

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 170 times
Screenshot (7).png
Screenshot (7).png (884.55 KiB) Viewed 170 times

geotek
 
Posts: 54
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

by urfdvw on Sat Jun 19, 2021 10:43 am

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 158 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.

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

Re: Monichrome 128x64 OLED Problems

by geotek on Sun Jun 20, 2021 2:43 pm

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

geotek
 
Posts: 54
Joined: Thu Mar 07, 2013 1:39 pm

Re: Monichrome 128x64 OLED Problems

by urfdvw on Sun Jun 20, 2021 6:28 pm

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

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

Please be positive and constructive with your questions and comments.