Lab4-01_measure_acceleration_lite
Dependencies: mbed HEPTA_SENSOR_lite HEPTA_EPS_lite
Diff: main.cpp
- Revision:
- 3:b5809ec2a8cd
- Parent:
- 2:48467db233ff
--- a/main.cpp Fri Aug 20 12:31:01 2021 +0000 +++ b/main.cpp Tue Aug 24 02:32:37 2021 +0000 @@ -9,7 +9,9 @@ float ax,ay,az; pc.printf("Acceleration Sensor\r\n"); eps.turn_on_regulator(); //Turn on 3.3V converter + sensor.setup(); for(int i=0;i<50;i++){ + // sensor.sen_acc(&ax,&ay,&az); pc.printf("%f,%f,%f\r\n",ax,ay,az); wait_ms(1000);