Simple animation demo.
Fork of AkiSpiLcd_example by
Diff: main.cpp
- Revision:
- 5:8883e74c0f11
- Parent:
- 3:8dbf3336dc66
- Child:
- 6:b4ae3f550487
--- 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);*/
}
}
ban4jp -
