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.
Dependencies: mbed SDFileSystem_
Diff: accel3d.cpp
- Revision:
- 8:7f80139df48d
- Parent:
- 1:025596ffc973
- Child:
- 14:2707af31e02f
--- a/accel3d.cpp Thu Aug 19 08:38:59 2021 +0000 +++ b/accel3d.cpp Thu Aug 26 00:43:06 2021 +0000 @@ -33,7 +33,7 @@ spiWriteCS(1); wait_us(1); // printf("Who am I %02x\r\n", spireadReg(0x0f)); - spiwriteReg(0x21,0x84); // boot on + spiwriteReg(0x21,0x84); // 0x84(0101 0100) highpass filter/boot on spiwriteReg(0x1f,0xc0); // spiwriteReg(0x20,0x35); // 25hz 14bit spiwriteReg(0x25,0x14); // max 4G