Atmel / Mbed 2 deprecated Atmel_Blinky

Dependencies:   mbed

Committer:
Parthasarathy
Date:
Tue Nov 24 11:27:13 2015 +0000
Revision:
1:d9e6e3d4556e
Parent:
0:49e37eb917ef
Updated specific port to generic LED1 define

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 }