Alain Pegatoquet
/
_er1_test_vcs
Programme de test pour LPC1768 (affichage de LED avec tempo)
main.cpp@3:412b0e9270ee, 2017-09-06 (annotated)
- Committer:
- alainpegatoquet
- Date:
- Wed Sep 06 06:54:18 2017 +0000
- Revision:
- 3:412b0e9270ee
- Parent:
- 1:9ef8f1f1261d
- Child:
- 4:36752a79e890
Version 2.1 : LED3 au lieu de LED2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alainpegatoquet | 0:4f83d63af624 | 1 | #include "mbed.h" |
alainpegatoquet | 1:9ef8f1f1261d | 2 | #include "const.h" |
alainpegatoquet | 0:4f83d63af624 | 3 | |
alainpegatoquet | 0:4f83d63af624 | 4 | DigitalOut myled(LED1); |
alainpegatoquet | 3:412b0e9270ee | 5 | DigitalOut myled1(LED3); |
alainpegatoquet | 0:4f83d63af624 | 6 | |
alainpegatoquet | 1:9ef8f1f1261d | 7 | int main() |
alainpegatoquet | 1:9ef8f1f1261d | 8 | { |
alainpegatoquet | 0:4f83d63af624 | 9 | while(1) { |
alainpegatoquet | 1:9ef8f1f1261d | 10 | myled1 = 1; |
alainpegatoquet | 1:9ef8f1f1261d | 11 | myled2 = 0; |
alainpegatoquet | 1:9ef8f1f1261d | 12 | wait(TEMPO1); |
alainpegatoquet | 1:9ef8f1f1261d | 13 | myled1 = 0; |
alainpegatoquet | 1:9ef8f1f1261d | 14 | myled2 = 1; |
alainpegatoquet | 1:9ef8f1f1261d | 15 | wait(TEMPO2); |
alainpegatoquet | 0:4f83d63af624 | 16 | } |
alainpegatoquet | 0:4f83d63af624 | 17 | } |