Riad_ Bajraktarevic
/
Joystick_Led
Aufgabe 1. BusOut Programm
Revision 3:e090a9b08c31, committed 2020-01-12
- Comitter:
- riad
- Date:
- Sun Jan 12 12:30:46 2020 +0000
- Parent:
- 2:ae17974ea4a6
- Commit message:
- int main; Joystick
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jan 12 12:29:59 2020 +0000 +++ b/main.cpp Sun Jan 12 12:30:46 2020 +0000 @@ -3,6 +3,19 @@ BusOut lb(LED1,LED2,LED3,LED4); DigitalIn joy(BUTTON1); +void lb1 (); + +int main () +{ + while(1) + { + if(joy) + { + lb1 (); + } + wait_ms(100); + } +} void lb1 () {