HEPTA-Sat Training 2022
/
Lab4-02_detect_accel_velocity_i2c
HeptaSat
Revision 4:c041a3581bc7, committed 18 months ago
- 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);