essai

Dependencies:   mbed

Committer:
valentin__
Date:
Wed Oct 07 12:59:05 2020 +0000
Revision:
0:0696ade9cc17
Child:
1:041652e37a4d
premier commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
valentin__ 0:0696ade9cc17 1 #include "mbed.h"
valentin__ 0:0696ade9cc17 2
valentin__ 0:0696ade9cc17 3 DigitalOut myled(LED1);
valentin__ 0:0696ade9cc17 4
valentin__ 0:0696ade9cc17 5 int main() {
valentin__ 0:0696ade9cc17 6 while(1) {
valentin__ 0:0696ade9cc17 7 myled = 1; // LED is ON
valentin__ 0:0696ade9cc17 8 wait(0.2); // 200 ms
valentin__ 0:0696ade9cc17 9 myled = 0; // LED is OFF
valentin__ 0:0696ade9cc17 10 wait(1.0); // 1 sec
valentin__ 0:0696ade9cc17 11 }
valentin__ 0:0696ade9cc17 12 }