Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:c041a3581bc7, committed 2022-11-08
- 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);