LS020.h is a MobileLCD library for the LS020 display (used in GSM Siemens S65 family). Resolution 176x132
Diff: LS020LCD.h
- Revision:
- 1:2269e07af50b
- Parent:
- 0:d550841cd6eb
- Child:
- 2:d048f09dcfb0
--- a/LS020LCD.h Mon Dec 06 20:25:44 2010 +0000 +++ b/LS020LCD.h Mon Dec 06 20:37:10 2010 +0000 @@ -1,6 +1,8 @@ -/* mbed LS020 Library, for driving the I2C I/O Expander - * Copyright (c) 2010, Wim De Roeve, port from Christian Kranz research to mbed - +/* mbed LS020 Library, for driving the LCD display LS020 from SHARP used in + * GSM S65 Siemens + * + * Copyright (c) 2010, Wim De Roeve, thanks to Christian Kranz research + * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -28,7 +30,7 @@ namespace mbed { /* Class: LS020LCD - * An abstraction of the LS020 Mobile phone screen, used in Siemens S65 GSM + * An abstraction of the LS020 Mobile phone screen, used in GSm Siemens S65 * * Example: * > @@ -38,7 +40,7 @@ * >LSO20LCD S65lcd(p5,p6,p7,p8,p9); * > * > int main() { - * > S65lcd.printf("Hello World!"); + * > S65lcd.fillcircle(10,10,10,0xE0); * > } */ @@ -54,7 +56,6 @@ * cs - Chip Select * rst - reset * rs - register select - * rotation - orientation of the screen 0 = landscape, 1 = */ LS020LCD(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rst, PinName rs); @@ -76,18 +77,6 @@ void scroll(char offset); void cls(); - /** Read the IO pin level - * - * @return The byte read - */ - //int read(); - - /** Write to the IO pins - * - * @param data The 8 bits to write to the IO port - */ - //void write(int data); - private: SPI _spi; DigitalOut _rst; @@ -116,10 +105,6 @@ int rows(); void set_cursor(unsigned int x, unsigned int y); void set_window(char x0, char y0, char x1,char y1); - //void rectangle8(char x1, char y1, char x2, char y2, char color); - //void putpixel(unsigned char r,unsigned char g,unsigned char b, unsigned char x, unsigned char y); - - }; }