Robert Tomczak
/
TP3_Partage_app-shield-joystick-2021
TPN°3 joystick BTS SNEC Amiens
main.cpp@6:53fc4ab90e95, 2021-10-10 (annotated)
- Committer:
- rtk
- Date:
- Sun Oct 10 14:43:39 2021 +0000
- Revision:
- 6:53fc4ab90e95
- Parent:
- 4:dd6d3b44dcb9
2021;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:0325ecbd1916 | 1 | #include "mbed.h" |
rtk | 4:dd6d3b44dcb9 | 2 | #include "C12832.h" |
chris | 0:0325ecbd1916 | 3 | |
chris | 2:507020c78d79 | 4 | DigitalIn up(A2); |
rtk | 6:53fc4ab90e95 | 5 | C12832 lcd(D11, D13, D12, D7, D10); |
chris | 0:0325ecbd1916 | 6 | |
chris | 0:0325ecbd1916 | 7 | int main() |
chris | 0:0325ecbd1916 | 8 | { |
chris | 0:0325ecbd1916 | 9 | |
chris | 2:507020c78d79 | 10 | while (1) { |
rtk | 6:53fc4ab90e95 | 11 | lcd.locate(0,8); |
rtk | 6:53fc4ab90e95 | 12 | if (up) lcd.printf("Up"); |
rtk | 6:53fc4ab90e95 | 13 | else lcd.printf("Aucune touche"); |
rtk | 6:53fc4ab90e95 | 14 | |
chris | 2:507020c78d79 | 15 | } |
chris | 0:0325ecbd1916 | 16 | } |
chris | 0:0325ecbd1916 | 17 | |
chris | 0:0325ecbd1916 | 18 |