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:
Tue Dec 21 01:11:18 2010 +0000
Parent:
16:6f5d07cfff03
Child:
18:77ec40174c31
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	Tue Dec 21 00:39:25 2010 +0000
+++ b/uOLED.cpp	Tue Dec 21 01:11:18 2010 +0000
@@ -57,9 +57,10 @@
     return (_oled.getc() == OLED_ACK);
 }
 
-bool uOLED::displayControl(char mode) {
+bool uOLED::displayControl(char mode, char value) {
     _oled.putc(0x59);
     _oled.putc(mode);
+    _oled.putc(value);
     
     return (_oled.getc() == OLED_ACK);
 }
--- a/uOLED.h	Tue Dec 21 00:39:25 2010 +0000
+++ b/uOLED.h	Tue Dec 21 01:11:18 2010 +0000
@@ -50,27 +50,45 @@
     */
     uOLED(PinName serialTX, PinName serialRX, PinName reset);
     
-    /** Dunno2
-    * Dunno
-    * @param returns something.
+    /** Convert RGB value into the type of value that the uOLED wants.
+    * 
+    * @param red Red value.
+    * @param green Green value.
+    * @param blue Blue value.
     */
     short getRGB(char red, char green, char blue);
 
-    /** Dunno3
-    * Dunno
+    /** !!ToDo!!
+    * 
     * @param returns something.
     */
     bool addBitmappedCharacter(char character, char data[8]);
-    /** Dunno4
+    
+    /** !!ToDO!!
     * Dunno
     * @param returns something.
     */
     bool blockCopyPaste(char sourceX, char sourceY, char destinationX, char destinationY, char width, char height);
-    /** Dunno5
-    * Dunno
-    * @param returns something.
+    
+    /** Display control.
+    * 
+    * Display ON/OFF and PowerUp/Shutdown.
+    * Use setContrast(contrast) to set the contrast.
+    *
+    * @param mode Sets specified mode.
+    * @param value Value option for mode.
+    *
+    * Mode: 01 Display ON/OFF
+    *   Value: 00 OFF
+    *   Value: 01 ON
+    * Mode: 02 Contrast Adjust
+    *   Value range: 0x00 to 0x0F
+    * Mode: 03 Display PowerUp/Shutdown (low power mode)
+    *   Value 00 Shutdown
+    *   Value 01 Powerup
     */
-    bool displayControl(char mode);
+    bool displayControl(char mode, char value);
+    
     /** Dunno5
     * Dunno
     * @param returns something.