Dependencies:   mbed

Committer:
finecay746
Date:
Sun Dec 29 22:50:36 2019 +0000
Revision:
0:31946758fbe5
first

Who changed what in which revision?

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