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: main.cpp
- Revision:
- 5:8883e74c0f11
- Parent:
- 3:8dbf3336dc66
- Child:
- 6:abfbb8453a70
--- a/main.cpp Tue May 06 14:57:37 2014 +0000 +++ b/main.cpp Tue May 06 17:26:25 2014 +0000 @@ -13,19 +13,12 @@ AkiSpiLcd LCD(MOSI_, SCK_, D2, D5); DigitalOut myled(LED1); -//Ticker disp; -extern volatile const uint8_t hogepic[]; -/* -void dispinvert(void) -{ - LCD.cominvert(); -} -*/ +extern const uint8_t hogepic[]; + int main() { wait_ms(1); -// disp.attach(&dispinvert,0.1); LCD.cls(); LCD.updateSingle(10,(uint8_t*)(hogepic+2000)); LCD.updateMulti(100,(240-100),(uint8_t*)(hogepic)); @@ -35,10 +28,6 @@ LCD.updateMulti(i,(240-i),(uint8_t*)(hogepic)); LCD.updateMulti(0,(i),(uint8_t*)(hogepic+50*(240-i))); } - /* myled = 1; - wait(0.2); - myled = 0; - wait(0.2);*/ } }