ADXL345 Evaluation

Dependencies:   mbed

main.cpp

Committer:
screamer
Date:
2014-01-30
Revision:
0:51be560629b8
Child:
2:0bc5af6c7ebf

File content as of revision 0:51be560629b8:

#include "mbed.h"

DigitalOut red(D5);
DigitalOut blue(D8);
DigitalOut green(D9);
int i;

int main() {
    while(1) {
        for (i=1; i<7; i++) {
            red = i & 1;
            blue = i & 2;
            green = i & 4;
            wait(0.2);
        }
    }
}