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
Diff: uOLED.cpp
- Revision:
- 31:7ad5bf258a1e
- Parent:
- 30:41a872ad6155
--- a/uOLED.cpp Sat Jan 08 09:06:11 2011 +0000 +++ b/uOLED.cpp Sun Jan 09 20:24:37 2011 +0000 @@ -62,6 +62,21 @@ return (_oled.getc() == OLED_ACK); } +bool uOLED::screenCopy(char x, char y, char width, char height, char sectorHi, char sectorMid, char sectorLow) +{ + _oled.putc(0x40); + _oled.putc(0x43); + _oled.putc(x); + _oled.putc(y); + _oled.putc(width); + _oled.putc(height); + _oled.putc(sectorHi); + _oled.putc(sectorMid); + _oled.putc(sectorLow); + + return (_oled.getc() == OLED_ACK); +} + bool uOLED::displayControl(char mode, char value) { _oled.putc(0x59); _oled.putc(mode);