MMIA

Dependencies:   MMA8451Q TSI USBDevice mbed

Committer:
chris
Date:
Fri Oct 12 12:41:36 2012 +0000
Revision:
0:0024ab6b9624
Child:
1:4f62fc36c30d
First revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:0024ab6b9624 1 #include "mbed.h"
chris 0:0024ab6b9624 2
chris 0:0024ab6b9624 3 int main()
chris 0:0024ab6b9624 4 {
chris 0:0024ab6b9624 5 DigitalOut gpo(PTB8);
chris 0:0024ab6b9624 6 DigitalOut led(LED_RED);
chris 0:0024ab6b9624 7
chris 0:0024ab6b9624 8 while(1) {
chris 0:0024ab6b9624 9 gpo = 1;
chris 0:0024ab6b9624 10 led=1; // Off
chris 0:0024ab6b9624 11 wait(2);
chris 0:0024ab6b9624 12 gpo = 0;
chris 0:0024ab6b9624 13 led=0; // on
chris 0:0024ab6b9624 14 wait(2);
chris 0:0024ab6b9624 15 }
chris 0:0024ab6b9624 16 }