Programme de test pour LPC1768 (affichage de LED avec tempo)

Dependencies:   mbed

Committer:
alainpegatoquet
Date:
Mon Sep 04 16:26:33 2017 +0000
Revision:
0:4f83d63af624
Child:
1:9ef8f1f1261d
Version 1 : tempo de 0.2s sur LED1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alainpegatoquet 0:4f83d63af624 1 #include "mbed.h"
alainpegatoquet 0:4f83d63af624 2
alainpegatoquet 0:4f83d63af624 3 DigitalOut myled(LED1);
alainpegatoquet 0:4f83d63af624 4
alainpegatoquet 0:4f83d63af624 5 int main() {
alainpegatoquet 0:4f83d63af624 6 while(1) {
alainpegatoquet 0:4f83d63af624 7 myled = 1;
alainpegatoquet 0:4f83d63af624 8 wait(0.2);
alainpegatoquet 0:4f83d63af624 9 myled = 0;
alainpegatoquet 0:4f83d63af624 10 wait(0.2);
alainpegatoquet 0:4f83d63af624 11 }
alainpegatoquet 0:4f83d63af624 12 }