ItsyBitsy nrf52840 - how to print numbers on OLED

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
RainySun
 
Posts: 73
Joined: Thu Nov 18, 2021 2:55 pm

ItsyBitsy nrf52840 - how to print numbers on OLED

Post by RainySun »

Hey, I am currently using ItsyBitsy nRF52840 express, and SSD1306 OLED; I am using I2C connection, but the issue is that I am not even seeing anything on OLED.
I have downloaded all the needed libraries, and the connection is simply as it is connecting OLED SDA & SCL to its respective SDA & SCL on Itsybitsy nRF52840 express; the express board have SDA and SCL printed beside the pins, so it's easy to know where to connect. I hope to hear your response.

Below is my code, and my libraries.

Code: Select all

import time
import board
import adafruit_ssd1306

i2c = board.I2C()
oled = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c)

while True:

    oled.fill(0)
    oled.text("Hello", 0, 0)
    oled.text("World", 0, 10)
    oled.show()
    time.sleep(0.5)
Attachments
OLED_LIB.PNG
OLED_LIB.PNG (11.81 KiB) Viewed 467 times
Last edited by dastels on Thu Dec 02, 2021 10:06 pm, edited 1 time in total.
Reason: Add code block

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

Post by dastels »

Can you post what you see in the REPL when the code runs? That should give a better idea of what's happening.

If you aren't familiar with using the REPL (or even just the serial connection), see
https://learn.adafruit.com/welcome-to-c ... al-console
https://learn.adafruit.com/welcome-to-c ... al-console
https://learn.adafruit.com/welcome-to-c ... n/the-repl

Dave

User avatar
RainySun
 
Posts: 73
Joined: Thu Nov 18, 2021 2:55 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

Post by RainySun »

Update:
I was reading from the following website since it is related to ItsyBitsy nRF52840, https://learn.adafruit.com/adafruit-its ... python-i2c, and i was still not getting an output on OLED.
After few searches online, found out that Adafruit has a website that also explains about I2C with OLED: https://learn.adafruit.com/monochrome-o ... thon-usage This helped me out. My issue has been resolved. Thanks

User avatar
johnson113
 
Posts: 1
Joined: Mon Dec 13, 2021 2:01 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

Post by johnson113 »

Thankyou for sharing.

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

Return to “Itsy Bitsy Boards”