Code APP3
Dependencies: mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial
Fork of APP3_Lab by
Diff: sensors.cpp
- Revision:
- 9:3631d3685cfa
- Parent:
- 7:b054ce191070
- Child:
- 10:edcf07f33583
--- a/sensors.cpp Sat Sep 30 20:07:23 2017 +0000 +++ b/sensors.cpp Sat Sep 30 20:17:57 2017 +0000 @@ -1,5 +1,8 @@ #include "sensors.h" +MMA8452Q accel(p9, p10, 0x1D); +DigitalIn Bouton1(p20); + int readAccel(); int readBouton1(); @@ -25,6 +28,8 @@ void Test() { + initialize_sensors(); + Serial pc(USBTX, USBRX); // tx, rx for(int i = 0; i<2;i++) {