Testé pour projet BTS SN

Dependencies:   MODMAX7456 mbed

Fork of MAX7456_HelloWorld by Christian Dupaty

Revision:
2:e25ed18fa668
Parent:
0:11828abc1244
Child:
3:39577e90b8a2
--- a/main.cpp	Sat Apr 30 17:10:43 2016 +0000
+++ b/main.cpp	Thu May 12 11:27:55 2016 +0000
@@ -17,21 +17,25 @@
  
 int main() {
     
-    printf("Test MAX7456\r\n");
+   
+    printf("Test MAX7456 avec OSB click\r\n");
     
     osd = new OSD7456(MAX7456_MOSI, MAX7456_MISO, MAX7456_SCLK, MAX7456_CS, MAX7456_RST, MAX7456_VSYNC);
     
     // Set the character "local background" to 42%
-    //osd->max7456->backGround(MAX7456::Percent_42);
+    osd->max7456->backGround(MAX7456::Percent_42);
     
     // Set the blink rate to 133ms with a duty cycle of 3:1
-    //osd->max7456->blinkRate(MAX7456::ms_133, MAX7456::BT3_BT);
+    osd->max7456->blinkRate(MAX7456::ms_133, MAX7456::BT3_BT);
     
-    osd->print(1,2,"Bonjour STM32");
-    //osd->print(7, 4,  "Positioned text");
-    //osd->print(7, 6,  "Positioned text", MAX7456::LocalBG);
-    //osd->print(3, 8,  "Positioned text blinks", MAX7456::Blink | MAX7456::LocalBG);
-    //osd->print(4, 10, " Blinks and inverse ", MAX7456::Blink | MAX7456::LocalBG | MAX7456::Inverse);
+    osd->print(1,1,"Incrustation sur STM32");
+    osd->print(1,2,"----------------------");
+    osd->print(7, 4,  "Texte en 7-4");
+    osd->print(7, 5,  "Texte fond gris", MAX7456::LocalBG);
+    osd->print(2, 7,  "clignotant fond gris", MAX7456::Blink | MAX7456::LocalBG);
+    osd->print(4, 9,  "Texte Noir", MAX7456::Inverse);
+    osd->print(1, 10, "Noir-fond gris-clignotant", MAX7456::Inverse|MAX7456::LocalBG|MAX7456::Blink);
+    
     printf("Fin du test\r\n");
-    while(1);
+    while(1);   
 }