(in progress)
Dependencies: LM75B EALib mbed
Diff: main_proj3.cpp
- Revision:
- 0:53a593dea14e
- Child:
- 1:f5ad0c1f9d0f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_proj3.cpp Mon Oct 12 23:03:47 2015 +0000 @@ -0,0 +1,37 @@ +#include <LM75B.h> //Temperature header file +#include <MMA7455.h> // Accelerometer header file + +Serial myUart (USBTX, USBRX); +LM75B tempsensor(P0_27, P0_28); +MMA7455 sensor(P0_27, P0_28); + +int main() +{ + char in_bound; + myUart.baud(19200); // setting the baud rate + int value[3] = { 0,0,0}; + + while(1) { + if(!sensor.setMode(MMA7455::ModeMeasurement) + printf("Unable to set mode for MMA7455!\n"); + if(!sensor.calibrate()) + printf("Failed to calibrate MMA7455!\n"); + + if(!sensor.read) + + + + + } + + + + + + + + + + + +} \ No newline at end of file