Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

SSD1308 I2C OLED - Stellaris driver API

$
0
0

Hi,

I have written a driver API for SSD1308 based I2C OLEDs (can be used with SSD1306 too with no/only minor changes in the initialization routine) which I will use for my C3ii INS Stellaris Booster Pack (http://e2e.ti.com/group/microcontrollerprojects/m/msp430microcontrollerprojects/664688.aspx).

The driver is comparable to the 'Simple Display' example from the EVALBOT.

The API relies on my Stellaris I2C driver which you can find here: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/473/t/235926.aspx.

The API allows displaying:

1.) Images (black&white)

The image needs to be a black&white .BMP-Image file which must be converted into a data array for use with the API. A little programm called 'LCDAssistent' is included in the attached .zip file which can be used for this task.

2.) Centered Text

3.) Strings

4.) It makes use of an undocumented SSD1306/1308 command called 'Double-Size-Font' (0xD6). 

After receiving this command, the SSD1308 OLED controller displays  each scan line of the first 4 text lines twice. This is resulting in a font which is 2 pages tall.

Using the 0xD6 command will not affect/alter the content of the SSD1308 GDDRAM! When in 'Double-Size-Font'-Mode, the 'Set Display Start Line' command is used to display the pages PAGE4 to PAGE7.

  Initial display content

  Double-Size-font Mode swirtched ON

  display Start Line set to 0x32 (start of PAGE4)

  Double-Size-Font Mode switched OFF and Display Start Line set back to 0x40 (beginning of the PAGE1)

Here is the Driver API: 

(Please visit the site to view this file)

Please report any issues or improvements! Have fun with your OLED.

Kind regards
aBUGSworstnightmare 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>