Gijs van Oort
/
frdm_gpio
Test
main.cpp@1:e2ee1b23b594, 2016-09-13 (annotated)
- Committer:
- Gijsvanoort
- Date:
- Tue Sep 13 10:06:07 2016 +0000
- Revision:
- 1:e2ee1b23b594
- Parent:
- 0:dd25a7c75573
Nieuwe commit nadat ik gepublished heb
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gijsvanoort | 0:dd25a7c75573 | 1 | #include "mbed.h" |
Gijsvanoort | 0:dd25a7c75573 | 2 | |
Gijsvanoort | 0:dd25a7c75573 | 3 | DigitalOut gpo(D0); |
Gijsvanoort | 0:dd25a7c75573 | 4 | DigitalOut led(LED_RED); |
Gijsvanoort | 0:dd25a7c75573 | 5 | |
Gijsvanoort | 0:dd25a7c75573 | 6 | int main() |
Gijsvanoort | 1:e2ee1b23b594 | 7 | Even kijken wat er nu gebeurt |
Gijsvanoort | 0:dd25a7c75573 | 8 | { |
Gijsvanoort | 0:dd25a7c75573 | 9 | while (true) { |
Gijsvanoort | 0:dd25a7c75573 | 10 | gpo = !gpo; // toggle pin |
Gijsvanoort | 0:dd25a7c75573 | 11 | led = !led; // toggle led |
Gijsvanoort | 0:dd25a7c75573 | 12 | wait(0.2f); |
Gijsvanoort | 0:dd25a7c75573 | 13 | } |
Gijsvanoort | 0:dd25a7c75573 | 14 | } |