TPN°3 joystick BTS SNEC Amiens

Dependencies:   mbed C12832

Files at this revision

API Documentation at this revision

Comitter:
rtk
Date:
Sun Oct 10 14:43:39 2021 +0000
Parent:
5:95a2bbe80208
Commit message:
2021;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Oct 10 14:30:02 2021 +0000
+++ b/main.cpp	Sun Oct 10 14:43:39 2021 +0000
@@ -2,14 +2,16 @@
 #include "C12832.h"
 
 DigitalIn up(A2);
-
-
+C12832 lcd(D11, D13, D12, D7, D10);
 
 int main()
 {
 
     while (1) {
-       
+        lcd.locate(0,8);
+        if (up) lcd.printf("Up");
+        else lcd.printf("Aucune touche");
+
     }
 }