Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: CarPakingSystem_V13
Diff: SSH1106.h
- Revision:
- 3:ccd49dd0621d
- Parent:
- 1:ac9efaadd666
- Child:
- 4:cbc557852061
--- a/SSH1106.h Thu Dec 22 23:15:46 2016 +0000 +++ b/SSH1106.h Mon Mar 08 02:33:45 2021 +0000 @@ -85,7 +85,10 @@ // Draw a vertical line, start positions / height / width in pixels. Buffered version. void drawbufferLineVert(char posx, char posy, char height, char width); - + void writeText_format(char column, char page, const char *font_address, const char *text); + void writeDec_format(char column, char page, const char *font_address, const int num); + void clear_page(int column,int page); + void fillScreen(); private: SPI *_lcd; @@ -96,5 +99,10 @@ char buff[LCDWIDTH*LCDPAGES]; }; +extern SPI lcd; // mosi, miso (nc), sclk +extern DigitalOut cs; // chip select (active low) +extern DigitalOut cd; // command/data (0=command, 1=data) +extern DigitalOut rst; // Reset (active low) +extern SSH1106 ssh1106; #endif