mbed Application Shield test pg.
Dependencies: C12832 LM75B MMA7660 mbed
Revision 0:5d1367a53ae7, committed 2016-10-21
- Comitter:
- txracing
- Date:
- Fri Oct 21 06:32:43 2016 +0000
- Commit message:
- first commit!
Changed in this revision
diff -r 000000000000 -r 5d1367a53ae7 C12832.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Fri Oct 21 06:32:43 2016 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/chris/code/C12832/#7de323fa46fe
diff -r 000000000000 -r 5d1367a53ae7 LM75B.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM75B.lib Fri Oct 21 06:32:43 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r 000000000000 -r 5d1367a53ae7 MMA7660.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMA7660.lib Fri Oct 21 06:32:43 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/MMA7660/#36a163511e34
diff -r 000000000000 -r 5d1367a53ae7 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 21 06:32:43 2016 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "LM75B.h" +#include "C12832.h" +#include "MMA7660.h" + +// Using Arduino pin notation +C12832 lcd(D11, D13, D12, D7, D10); +MMA7660 MMA(D14,D15); +LM75B sensor(D14,D15); + +int main() +{ + + while(true) { // this is the third thread + lcd.cls(); + lcd.locate(0,3); + lcd.printf("mbed application shield!\n"); + lcd.printf("x=%.2f y=%.2f z=%.2f\n",MMA.x(), MMA.y(), MMA.z()); + lcd.printf("Temp = %.1f", sensor.temp()); + wait(1.0); + } +}
diff -r 000000000000 -r 5d1367a53ae7 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Oct 21 06:32:43 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3 \ No newline at end of file