scrolling example code for SHARP LCD LS027B4DH01/LS027B7DH01, using AkiSpiLcd library
This is very basic library example to access a graphic LCD LS027B4DH01 or LS027B7DH01
Import libraryAkiSpiLcd
Basic library for SHARP LCD LS027B4DH01/LS027B7DH01
- schematic example1:
- schematic example2:
- example1 photo:
- example2 photo:
- example2 movie (mpeg4 movie):
Diff: AkiSpiLcd.h
- Revision:
- 0:3569e2cfb60b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AkiSpiLcd.h Thu May 01 00:01:02 2014 +0000 @@ -0,0 +1,22 @@ +/* +this is for SHARP LCD LS027B4DH01 +by Kazuki Yamamoto, or _K4ZUKI_ +*/ +#include "mbed.h" + +class AkiSpiLcd +{ +public: + AkiSpiLcd(PinName mosi,PinName sck, PinName cs, PinName disp); + void cls(); + void updateSingle(int line, uint8_t* data); + void updateMulti(int line, int length, uint8_t* data); + void cominvert(); +private: + int comflag; + int modeflag; + int clearflag; + SPI _spi; + DigitalOut _cs; + DigitalOut _disp; +};