Upverter fit bit clone.

Dependencies:   ADXL345 MPU6050 SDFileSystem USBDevice mbed ms5611

Committer:
sam_grove
Date:
Wed Sep 04 01:29:38 2013 +0000
Revision:
1:2ad2659b666d
Parent:
0:6b97a0062296
added libraries for hardware IC's

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 0:6b97a0062296 1 #include "mbed.h"
sam_grove 1:2ad2659b666d 2 #include "USBSerial.h"
sam_grove 1:2ad2659b666d 3 #include "MPU6050.h"
sam_grove 1:2ad2659b666d 4 #include "ADXL345.h"
sam_grove 1:2ad2659b666d 5 #include "ms5611.h"
sam_grove 1:2ad2659b666d 6 #include "SDFileSystem.h"
sam_grove 0:6b97a0062296 7
sam_grove 1:2ad2659b666d 8 // IC's that are used by the hardware
sam_grove 1:2ad2659b666d 9 //USBSerial usb;
sam_grove 1:2ad2659b666d 10 //MPU6050 imu(sda, scl);
sam_grove 1:2ad2659b666d 11 //ADXL345 accelermoeter(mosi, miso, sck, cs);
sam_grove 1:2ad2659b666d 12 //ms5611 baro(sda, scl);
sam_grove 1:2ad2659b666d 13 //SDFileSystem sd(mosi, miso, sclk, cs, "sd");
sam_grove 1:2ad2659b666d 14 //TODO:
sam_grove 1:2ad2659b666d 15 //NRF8001 bt(comms, comms);
sam_grove 1:2ad2659b666d 16 //EK014AS015 e_ink(comms, comms);
sam_grove 1:2ad2659b666d 17
sam_grove 1:2ad2659b666d 18 // just make sure the code does something
sam_grove 0:6b97a0062296 19 DigitalOut myled(LED1);
sam_grove 0:6b97a0062296 20
sam_grove 1:2ad2659b666d 21 int main()
sam_grove 1:2ad2659b666d 22 {
sam_grove 1:2ad2659b666d 23 // code is still just hello world...
sam_grove 1:2ad2659b666d 24 while(1)
sam_grove 1:2ad2659b666d 25 {
sam_grove 0:6b97a0062296 26 myled = 1;
sam_grove 0:6b97a0062296 27 wait(0.2);
sam_grove 0:6b97a0062296 28 myled = 0;
sam_grove 0:6b97a0062296 29 wait(0.2);
sam_grove 0:6b97a0062296 30 }
sam_grove 0:6b97a0062296 31 }