Heavily documented control library for the uOLED-96-G1 (SGC) by 4D Systems. Will likely work with any of the 4D Systems serial controlled screens. <<info>> All examples in the documentation have been tested to the best of my current abilities, but there are a few functions that I simply do not use. I have created a Lighthouse page for this library. You may submit bug reports or feature requests to [[http://mbed-uoled.lighthouseapp.com|this page]]. If you really do not wish to sign up for a Lighthouse account you may also post any bugs or requests [[/users/Nakor/notebook/uoled-bug-reports/|here]]. <</info>>

Dependents:   DS18B20 DS18B20GSM Astromed Astromed_build20121123

Files at this revision

API Documentation at this revision

Comitter:
Nakor
Date:
Mon Dec 20 19:47:17 2010 +0000
Parent:
6:080d52539972
Child:
8:0a92ceb34cd0
Commit message:

Changed in this revision

uOLED.cpp Show annotated file Show diff for this revision Revisions of this file
uOLED.h Show annotated file Show diff for this revision Revisions of this file
--- a/uOLED.cpp	Mon Dec 20 18:49:40 2010 +0000
+++ b/uOLED.cpp	Mon Dec 20 19:47:17 2010 +0000
@@ -230,11 +230,16 @@
     return returnValue;
 }
 
-bool uOLED::setBackgroundColor(short color) {
+bool uOLED::setBackgroundColor(short colorA, short colorB) {
     _oled.putc(0x42);
 
+    /*
     _oled.putc(color >> 8);
     _oled.putc(color & 0xFF);
+    */
+    
+    _oled.putc(colorA);
+    _oled.putc(colorB);
 
     return (_oled.getc() == OLED_ACK);
 }
--- a/uOLED.h	Mon Dec 20 18:49:40 2010 +0000
+++ b/uOLED.h	Mon Dec 20 19:47:17 2010 +0000
@@ -150,15 +150,16 @@
     * @param returns something.
     */
     short readPixel(char x, char y);
+    /** Replaces the background colour with a new colour.
+    * 
+    * @param colorA First hex number of colour. (00 ~ FF)
+    * @param colorB Second hex number of colour. (00 ~ FF)
+    */
+    bool setBackgroundColor(short colorA, short colorB);
     /** Dunno19
     * Dunno
     * @param returns something.
-    */
-    bool setBackgroundColor(short color);
-    /** Dunno20
-    * Dunno
-    * @param returns something.
-    */
+    */    
     bool setFontSize(char fontType);
     /** Dunno21
     * Dunno