In part one of this series we explored how to generate resources for the SSD1322 OLED driver chip from Solomon Systech. In this post we’ll dive deeper into the inner workings of the SSD1322 OLED driver chip. We’ll also utilize the resources we generated in the previous post in a simple example. We’ll use a display manufactured by NewHaven Display to test our code. However our code should work for other displays based on the SSD1322. Let’s dive in!
Category: Embedded Tutorials Page 1 of 2
// ************************************************************************ // * Character - "o", Ascii - 111 // ************************************************************************ 0x00, 0x00, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, // ##### 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, // ######### 0x0F, 0xFF, 0x00, 0x00, 0x0F, 0xFF, 0x00, 0x00, // ### ### 0x0F, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, // ## ## 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xF0, 0x00, // ### ### 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xF0, 0x00, // ### ### 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xF0, 0x00, // ## ## 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xF0, 0x00, // ## ## 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xF0, 0x00, // ### ### 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xF0, 0x00, // ### ### 0x0F, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, // ## ## 0x0F, 0xFF, 0x00, 0x00, 0x0F, 0xFF, 0x00, 0x00, // ### ### 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, // ######### 0x00, 0x00, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, // #####
Character LCDs are great for building simple embedded interfaces, they are simple to use and cheap. I use character LCDs in most of my own projects and experiments. However, character LCDs are somewhat limited. It’s hard if not impossible to display an image or a logo on the screen and you’re often stuck with the same font built into the display. Unlike character displays, graphical displays provide more flexibility and will let you display images and custom fonts. In this post I’ll talk about working with a graphical OLED display. The display I’ll talk about uses the SSD1322 driver chip from Solomon Systech.
Embedded drivers are the glue between software and hardware, and are a very important part of embedded systems. In other words embedded drivers enable us to easily talk to chips using interfaces like TWI (Two Wire Interface) because unfortunately chips don’t speak English – pun intended. Being able to write simple embedded drivers is a good skill to have although platforms with good libraries like Arduino exist. You don’t want to be stuck on a project because you can’t find a library for a critical chip in your design. I’ll use the HDC1000 chip from Texas Instruments as an example for writing embedded drivers. Let’s dive in.
Page 1 of 2