Example Program

Dependencies:   mbed

Committer:
Parthasarathy
Date:
Tue Mar 22 09:58:27 2016 +0000
Revision:
2:9c1a4e061f93
Parent:
1:d9e6e3d4556e
Updated dependency from mbed-dev to mbed library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Parthasarathy 0:49e37eb917ef 1 #include "mbed.h"
Parthasarathy 1:d9e6e3d4556e 2
Parthasarathy 1:d9e6e3d4556e 3 DigitalOut myled(LED1);
Parthasarathy 0:49e37eb917ef 4
Parthasarathy 0:49e37eb917ef 5 int main() {
Parthasarathy 0:49e37eb917ef 6 printf("RESET");
Parthasarathy 0:49e37eb917ef 7 while(1) {
Parthasarathy 0:49e37eb917ef 8 myled = 1;
Parthasarathy 0:49e37eb917ef 9 wait(0.2);
Parthasarathy 0:49e37eb917ef 10 myled = 0;
Parthasarathy 0:49e37eb917ef 11 wait(0.2);
Parthasarathy 0:49e37eb917ef 12 printf("TEST");
Parthasarathy 0:49e37eb917ef 13 }
Parthasarathy 0:49e37eb917ef 14 }