Upverter fit bit clone.
Dependencies: ADXL345 MPU6050 SDFileSystem USBDevice mbed ms5611
Diff: main.cpp
- Revision:
- 1:2ad2659b666d
- Parent:
- 0:6b97a0062296
--- a/main.cpp Tue Sep 03 23:59:30 2013 +0000 +++ b/main.cpp Wed Sep 04 01:29:38 2013 +0000 @@ -1,9 +1,28 @@ #include "mbed.h" +#include "USBSerial.h" +#include "MPU6050.h" +#include "ADXL345.h" +#include "ms5611.h" +#include "SDFileSystem.h" +// IC's that are used by the hardware +//USBSerial usb; +//MPU6050 imu(sda, scl); +//ADXL345 accelermoeter(mosi, miso, sck, cs); +//ms5611 baro(sda, scl); +//SDFileSystem sd(mosi, miso, sclk, cs, "sd"); +//TODO: +//NRF8001 bt(comms, comms); +//EK014AS015 e_ink(comms, comms); + +// just make sure the code does something DigitalOut myled(LED1); -int main() { - while(1) { +int main() +{ + // code is still just hello world... + while(1) + { myled = 1; wait(0.2); myled = 0;