C++ project

Dependencies:   SeeedGrayOLED mbed

Fork of MBED_CPP_DII4A by Projet C++

Revision:
2:fa5b67d8d989
Parent:
1:e1e7d89e37fe
--- a/main.cpp	Mon Mar 13 08:35:17 2017 +0000
+++ b/main.cpp	Mon Mar 13 18:25:52 2017 +0000
@@ -7,17 +7,26 @@
 
 int main()
 {
-    //greenPB.mode(PullUp);
-    while(1) {
-        //myLed = greenPB;
-        SeeedGrayOled.init();             //initialize SEEED OLED display
-        SeeedGrayOled.clearDisplay();     //Clear Display.
-        SeeedGrayOled.setNormalDisplay(); //Set Normal Display Mode
-        SeeedGrayOled.setVerticalMode();  // Set to vertical mode for displaying text
-        SeeedGrayOled.setTextXY(0,0);
-        SeeedGrayOled.setGrayLevel(10);
-        SeeedGrayOled.putString("Coucou Candy");
-        wait_ms(1.0);
+    greenPB.mode(PullUp);
+    while(1) 
+    {
+        
+        
+    
+        myLed = !greenPB;
+    
+        //SeeedGrayOled.init();             //initialize SEEED OLED display
+        //SeeedGrayOled.clearDisplay();     //Clear Display.
+        //SeeedGrayOled.setNormalDisplay(); //Set Normal Display Mode
+        //SeeedGrayOled.setVerticalMode();  // Set to vertical mode for displaying text
+        //SeeedGrayOled.setTextXY(0,0);
+        //SeeedGrayOled.setGrayLevel(10);
+        //SeeedGrayOled.putString("Coucou Candy");
+        //wait(1);
+    
+        
+        
+        
         //for(char i=1; i < 11 ; i++) {
         //    SeeedGrayOled.setTextXY(i,0);  //set Cursor to first line, 0th column
         //    SeeedGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
@@ -25,7 +34,7 @@
         //    wait_ms(1.0);
         //}
 
-        wait(5.0);
+        //wait(1.0);
     }
 
 }
\ No newline at end of file