Lab4-01_measure_acceleration_lite

Dependencies:   mbed HEPTA_SENSOR_lite HEPTA_EPS_lite

Files at this revision

API Documentation at this revision

Comitter:
heptasat2021
Date:
Tue Aug 24 02:32:37 2021 +0000
Parent:
2:48467db233ff
Commit message:
For Hepta-Sat Lite

Changed in this revision

HEPTA_SENSOR_lite.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 48467db233ff -r b5809ec2a8cd HEPTA_SENSOR_lite.lib
--- a/HEPTA_SENSOR_lite.lib	Fri Aug 20 12:31:01 2021 +0000
+++ b/HEPTA_SENSOR_lite.lib	Tue Aug 24 02:32:37 2021 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/heptasat2021/code/HEPTA_SENSOR_lite/#82c6d3329af2
+https://os.mbed.com/users/heptasat2021/code/HEPTA_SENSOR_lite/#258d873c0246
diff -r 48467db233ff -r b5809ec2a8cd main.cpp
--- 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);