Dan Allegre / oled_graphic

Dependencies:   mbed

Revision:
1:414748809a35
Parent:
0:deb92489beec
Child:
2:b558c2d645b2
--- a/main.cpp	Fri Jun 19 06:04:06 2015 +0000
+++ b/main.cpp	Sun Jun 21 22:27:00 2015 +0000
@@ -10,6 +10,7 @@
 DigitalOut cs(D7);      //CS  (active low)
 
 SPI spi(SPI_MOSI,SPI_MISO,SPI_SCK);
+//SPI spi(PB_15,PB_14,PB_13);
  
 int main() {
     
@@ -23,16 +24,50 @@
     SSD1306Init();
     clearScreen();
     
-    wait(.1);
+    while(1) {
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex7, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex5, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex4, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex3, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex2, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex2, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex3, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex4, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex5, 2, 40);
+        wait(.1);
+        clearScreen();
+        imageDraw(aphex6, 2, 40);
+        //wait(.1);
+        //clearScreen();
+        //imageDraw(aphex7, 2, 40);
+
+    }
     
-    circleDraw(20,40,10);
-    circleDraw(40,20,30);
-    stringDraw(2, 40, "D A N");
-    stringDraw(4, 40, "mad scientist");
-
-    
-    while(1) {
-    }
+    //circleDraw(20,40,10);
+    //circleDraw(40,20,30);
+    //stringDraw(2, 40, "D A N");
+    //stringDraw(4, 40, "mad scientist");
 }