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: MPU9250_SPI mbed
main.cpp
- Committer:
- adisuciu
- Date:
- 2016-05-19
- Revision:
- 0:83fda1bfaffe
- Child:
- 1:f1e4ee4fc335
File content as of revision 0:83fda1bfaffe:
#include "mbed.h" #include "ADXL362.h" ADXL362 adxl362(D9); int main() { adxl362.reset(); wait_ms(600); // we need to wait at least 500ms after ADXL362 reset adxl362.set_mode(ADXL362::MEASUREMENT); uint8_t x,y,z; while(1) { x=adxl362.scanx_u8(); y=adxl362.scany_u8(); z=adxl362.scanz_u8(); printf("x = %x y = %x z = %x\r\n",x,y,z); wait_ms(100); } }