NRF52832 · NRF52840 · NRF52840 DK board

OLED display support for nRF52 Series

This blog is to add the OLED display on the nRF52 DK board. I would give the example code how to use the GFX and adafruit library on the Nordic nRF52.

On the Nordic nRF5 SDK, it contains the GFX library with the LCD 320×240.

https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_gfx.html

GFX library

The GFX library provides support for drawing graphic objects, as well as printing text.

Main features:

  • Support for drawing lines, rectangles, and circles.
  • Support for printing text on the screen.
  • Support for drawing bitmaps in RGB565 color format.
  • Hardware independent.
  • Any number of instances.

The library uses Bresenham’s algorithms for drawing objects. These are simple and efficient algorithms for drawing straight lines and circles on a grid of pixels.

For full API documentation of the library, see GFX Library.


However, if you need to add some small LCD display, it is hard to find any examples. For example, you can do the search the OLED LCD at the devzone.nordicsemi.com. The LCD is one of the hottest questions as below.

In this blog, I would use the SDK 15.3 and add the Solomon SSD1306 LCD to connect with nRF52 DK board. You can find all the source code at my github.

https://github.com/jimmywong2003/SSD1306-LCD-on-NRF52

It used the Nordic SDK 15.3 to connect two difference SSD1306 resolution displays through I2C interface.

  1. SSD1306 128×64
  2. SSD1306 128×32

There are two examples to run on SSD1306 (128×32 / 128×64) resolution with nRF52840 DK.
1) Port the Adafruit SSD1306 Library / GFX Library (refer to http://electronut.in/bluey/)
2) Port on the SSD1306 driver (refer to https://github.com/monpetit/nrf52-spi-i2c-master-ssd1306)




3 thoughts on “OLED display support for nRF52 Series

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.