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
Revision 12:59da6ae5cfb7, committed 2010-12-20
- Comitter:
- Nakor
- Date:
- Mon Dec 20 20:33:36 2010 +0000
- Parent:
- 11:1686d4d4bbdb
- Child:
- 13:f2b9f249bcff
- 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 20:17:07 2010 +0000 +++ b/uOLED.cpp Mon Dec 20 20:33:36 2010 +0000 @@ -64,6 +64,14 @@ return (_oled.getc() == OLED_ACK); } +bool uOLED::setContrast(char contrast) { + _oled.putc(0x59); + _oled.putc(0x02); + _oled.putc(contrast); + + return (_oled.getc() == OLED_ACK); +} + bool uOLED::displayUserBitmappedCharacter(char character, char x, char y, short color) { _oled.putc(0x44); _oled.putc(character);
--- a/uOLED.h Mon Dec 20 20:17:07 2010 +0000 +++ b/uOLED.h Mon Dec 20 20:33:36 2010 +0000 @@ -71,6 +71,11 @@ * @param returns something. */ bool displayControl(char mode); + /** Dunno5 + * Dunno + * @param returns something. + */ + bool setContrast(char contrast); /** Dunno6 * Dunno * @param returns something.