
TPN°3 joystick BTS SNEC Amiens
Revision 6:53fc4ab90e95, committed 2021-10-10
- 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"); + } }