Simple blink test.

Dependencies:   mbed

Committer:
dzoni
Date:
Fri Aug 02 15:39:15 2019 +0000
Revision:
1:4cfdf1527e74
Parent:
0:0f248bf5f3ac
Initial commit.

Who changed what in which revision?

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