mbed Application Shield test pg.
Dependencies: C12832 LM75B MMA7660 mbed
main.cpp
- Committer:
- txracing
- Date:
- 2016-10-21
- Revision:
- 0:5d1367a53ae7
File content as of revision 0:5d1367a53ae7:
#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); } }