Johan Kritzinger / Mbed 2 deprecated FRDMKL25Z-ShiftBrite

Dependencies:   mbed

Revision:
3:9376bf1f1bbd
Parent:
2:3935d2ed40cd
Child:
4:d2f8ddb423e2
--- a/main.cpp	Wed Aug 20 05:24:38 2014 +0000
+++ b/main.cpp	Wed Aug 20 08:11:28 2014 +0000
@@ -64,8 +64,45 @@
 wait(2);
 sbDisplay.setCurrentCorr(127,127,127);//This should be MAX
 wait(2);
-sbDisplay.setCurrentCorr(0x78,0x64,0x64);//sb suggested default
+//sbDisplay.setCurrentCorr(0x78,0x64,0x64);//sb suggested default
+    sbDisplay.setCurrentCorr(0,0,0);//Dim
+
+wait(2);
+PC.printf("INVERTED\r\n");
+sbDisplay.invert();
+sbDisplay.displayFrame();
+wait(2);
+PC.printf("FLIP\r\n");
+sbDisplay.flip();
+sbDisplay.displayFrame();
 wait(2);
+    sbDisplay.setLed(0,0XFF0000);//Red
+    sbDisplay.setLed(1,0X000500);//Green
+    sbDisplay.setLed(2,0X000005);//Blue
+    sbDisplay.setLed(3,0X050500);//Yellow
+    sbDisplay.setLed(4,0X000505); //Cyan?
+    sbDisplay.setLed(5,0X050005); // Purple
+    sbDisplay.displayFrame(); //get it on the LEDS
+
+PC.printf("RotateL");
+unsigned int loop;
+for (loop=0; loop != 100; loop++){
+sbDisplay.rotateLeft();
+sbDisplay.displayFrame();
+wait(0.1);
+}
+PC.printf("RotateR");
+//unsigned int loop;
+for (loop=0; loop != 100; loop++){
+sbDisplay.rotateRight();
+sbDisplay.displayFrame();
+wait(0.1);
+}
+for(loop=0; loop !=6; loop++){
+    sbDisplay.shiftRight();
+    sbDisplay.displayFrame();
+    wait(0.2);
+}
 
 PC.printf("Hallo (size=%d)\r\n", sizeof(unsigned long int));
 
@@ -90,9 +127,9 @@
     
 //USING THE MOVIE CLASS
 //Note, it uses the previously declared sbDisplay object.
-    movie myMovie(aMovie,sbDisplay,sizeof(aMovie));
-    myMovie.setRepeat(1);
-    t.attach(&myMovie,&movie::play,0.05);//Beware, if you go too fast here the MBED will crash
+ //   movie myMovie(aMovie,sbDisplay,sizeof(aMovie));
+ //   myMovie.setRepeat(1);
+ //   t.attach(&myMovie,&movie::play,0.05);//Beware, if you go too fast here the MBED will crash
 
    while(1){
     }