HeptaSat

Dependencies:   HEPTA_EPS mbed

Files at this revision

API Documentation at this revision

Comitter:
csmk18112
Date:
Tue Nov 08 03:08:02 2022 +0000
Parent:
3:a1a4491e2ab8
Commit message:
d

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 08 03:00:54 2022 +0000
+++ b/main.cpp	Tue Nov 08 03:08:02 2022 +0000
@@ -20,8 +20,8 @@
     cmd[0]=0x0F; //acceleration measurement range
     cmd[1]=0x05; //+-4g
     i2c.write(ACC,cmd,2); 
-    cmd[0]=0x11; //
-    cmd[1]=0x00;
+    cmd[0]=0x11; //Selection of the main power modes and low power sleep period
+    cmd[1]=0x00; //NORMAL mode, Sleep duration = 0.5ms
     i2c.write(ACC,cmd,2); 
     while(1) {
         send[0]=(char)(2);