![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Programme de test pour LPC1768 (affichage de LED avec tempo)
Diff: main.cpp.orig
- Revision:
- 4:36752a79e890
diff -r 412b0e9270ee -r 36752a79e890 main.cpp.orig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp.orig Wed Sep 06 07:26:53 2017 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "const.h" + +DigitalOut myled(LED1); +DigitalOut myled1(LED3); + +int main() +{ + while(1) { + myled1 = 1; + myled2 = 0; + wait(TEMPO1); + myled1 = 0; + myled2 = 1; + wait(TEMPO2); + } +}