A test blinky program by using the Toragi ARM writer.

Dependencies:   mbed-src

Committer:
jppang
Date:
Sat Feb 15 23:51:17 2014 +0000
Revision:
0:df45872c0560
Child:
1:33b6339739a5
A random blinky test program by using the Toragi ARM writer

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jppang 0:df45872c0560 1 //NXP LPC1114
jppang 0:df45872c0560 2 #include "mbed.h"
jppang 0:df45872c0560 3 #include <cstdlib>
jppang 0:df45872c0560 4 //#include <iostream>
jppang 0:df45872c0560 5
jppang 0:df45872c0560 6 DigitalOut led(dp14);
jppang 0:df45872c0560 7
jppang 0:df45872c0560 8 int main()
jppang 0:df45872c0560 9 {
jppang 0:df45872c0560 10 //using namespace std;
jppang 0:df45872c0560 11
jppang 0:df45872c0560 12 while(1)
jppang 0:df45872c0560 13 {
jppang 0:df45872c0560 14 led = rand() % 2;
jppang 0:df45872c0560 15 //led = 1;
jppang 0:df45872c0560 16 wait(0.5);
jppang 0:df45872c0560 17
jppang 0:df45872c0560 18 //cout << "Hello World!\n\r" << endl;
jppang 0:df45872c0560 19
jppang 0:df45872c0560 20 led = 0;
jppang 0:df45872c0560 21 wait(0.5);
jppang 0:df45872c0560 22 }
jppang 0:df45872c0560 23 }