Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days.
0

ItsyBitsy nrf52840 - how to print numbers on OLED
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ItsyBitsy nrf52840 - how to print numbers on OLED

by RainySun on Thu Dec 02, 2021 9:04 pm

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 | TOGGLE FULL SIZE
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 331 times
Last edited by dastels on Thu Dec 02, 2021 10:06 pm, edited 1 time in total.
Reason: Add code block

RainySun
 
Posts: 35
Joined: Thu Nov 18, 2021 2:55 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

by dastels on Thu Dec 02, 2021 10:15 pm

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-circuitpython/kattni-connecting-to-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/interacting-with-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/the-repl

Dave

dastels
 
Posts: 8475
Joined: Tue Oct 20, 2015 3:22 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

by RainySun on Thu Dec 02, 2021 10:23 pm

Update:
I was reading from the following website since it is related to ItsyBitsy nRF52840, https://learn.adafruit.com/adafruit-itsybitsy-nrf52840-express/circuitpython-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-oled-breakouts/circuitpython-usage This helped me out. My issue has been resolved. Thanks

RainySun
 
Posts: 35
Joined: Thu Nov 18, 2021 2:55 pm

Re: ItsyBitsy nrf52840 - how to print numbers on OLED

by johnson113 on Mon Dec 13, 2021 2:07 pm

Thankyou for sharing.

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

Please be positive and constructive with your questions and comments.