For f446re

Dependencies:   mbed

Committer:
achmad_fathoni
Date:
Mon Dec 18 23:46:12 2017 +0000
Revision:
0:ade77b8c709c
test

Who changed what in which revision?

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