Upverter fit bit clone.
Dependencies: ADXL345 MPU6050 SDFileSystem USBDevice mbed ms5611
Revision 1:2ad2659b666d, committed 2013-09-04
- Comitter:
- sam_grove
- Date:
- Wed Sep 04 01:29:38 2013 +0000
- Parent:
- 0:6b97a0062296
- Commit message:
- added libraries for hardware IC's
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ADXL345.lib Wed Sep 04 01:29:38 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/aberk/code/ADXL345/#bd8f0f20f433
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MPU6050.lib Wed Sep 04 01:29:38 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/MPU6050/#5c63e20c50f3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Wed Sep 04 01:29:38 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/SDFileSystem/#c8f66dc765d4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBDevice.lib Wed Sep 04 01:29:38 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/USBDevice/#6030a12b6c62
--- 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;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ms5611.lib Wed Sep 04 01:29:38 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/loopsva/code/ms5611/#41c370fa1f7b