This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Example at ...\ncs\v1.4.0\zephyr\samples\drivers\display does not work with SSD1306 wired directly to nRF9160DK

When I program the nrf9160dk with the example, the code detects the SSD1306, but the display looks like:

The image is only using the middle half (16 rows) of the display that has 32 rows and 128 columns. 

And the left side of the image is a random set of pixels.

What can I do to get the example to give me text on the screen?

I am using the SSD1306 OLED at: https://www.amazon.com/Pieces-Display-Module-SSD1306-3-3V-5V/dp/B08CDN5PSJ/ref=sr_1_8?dchild=1&keywords=ssd1306&qid=1606702037&sr=8-8

Do I have to modify any of the files to target the nRF9160 instead of the nRF52 family?

Parents
  • Hi Craig,

    I will look into your issue, but to understand it better I need a bit more info:

    How is your display wired up to your DK?

    Are you able to display text or characters to the middle half?

    I am working from home today, however, I plan to visit our office on Thursday. Hopefully be able to find a SSD1306 at the office so that I can test a few things.

    Best regards,

    Håkon

  • Hi Håkon,

    I have the SSD1306 OLED display wired directly to the nRF9160DK as follows:

    1. SDA: P0.30
    2. SCL: P0.31
    3. GND: GND
    4. VCC: VDD (switch on DK is set to make VDD=3.3V)

    I have had no success in displaying legible characters on any part of the display with the nRF9160DK. I am interested in reliably displaying series of16-pixel/24-pixel high characters on the display. Scrolling and displaying graphics would be nice, but not essential.

    The SSD1306 display that I am using is 128 pixels wide by 32 pixels high.

    Regards,

    Craig

  • Hi Craig,

    Thank you for the update.

    Looking at your image it looks like the resolution is somehow not set correctly. Is there any chance that the project is configured somewhere for 64 pixels, instead of 32? Would you be able to share your project files?

    I had a brief look at your previous case regarding the display. I noticed that in the recommend code for the CMakeLists.txt, the height was set to 64:   height = <64>;

    Best regards,

    Håkon

Reply Children
Related