scrolling example code for SHARP LCD LS027B4DH01/LS027B7DH01, using AkiSpiLcd library

Dependencies:   AkiSpiLcd mbed

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: /media/uploads/k4zuki/akispilcd_v2.1m.sch.png
  • schematic example2: /media/uploads/k4zuki/2.7inchshield.sch.png
  • example1 photo: /media/uploads/k4zuki/2014-09-17_20.22.26.jpg /media/uploads/k4zuki/2014-09-17_20.22.48.jpg
  • example2 photo: /media/uploads/k4zuki/2014-04-29_13.17.57.jpg
  • example2 movie (mpeg4 movie):

Files at this revision

API Documentation at this revision

Comitter:
k4zuki
Date:
Tue May 06 17:26:25 2014 +0000
Parent:
4:37321a3e4ed8
Child:
6:abfbb8453a70
Commit message:
bug fix

Changed in this revision

AkiSpiLcd.lib Show annotated file Show diff for this revision Revisions of this file
hogepic.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbeDshield.lib Show annotated file Show diff for this revision Revisions of this file
--- a/AkiSpiLcd.lib	Tue May 06 14:57:37 2014 +0000
+++ b/AkiSpiLcd.lib	Tue May 06 17:26:25 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/k4zuki/code/AkiSpiLcd_lib/#06927342f2f1
+http://mbed.org/users/k4zuki/code/AkiSpiLcd/#01979b296ab5
--- a/hogepic.h	Tue May 06 14:57:37 2014 +0000
+++ b/hogepic.h	Tue May 06 17:26:25 2014 +0000
@@ -1,4 +1,4 @@
-volatile const uint8_t hogepic[]={
+const uint8_t hogepic[]={
 0,0,
 0,0,
 0,0,
--- 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);*/
     }
 }
 
--- a/mbeDshield.lib	Tue May 06 14:57:37 2014 +0000
+++ b/mbeDshield.lib	Tue May 06 17:26:25 2014 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/k4zuki/code/mbeDshield/#6c0fe64100a4
+https://mbed.org/users/k4zuki/code/mbeDshield/#e0dca162df14