![](/media/cache/profiles/2e74f94b232c5a0cc3e75b4eaaf64c90.jpg.50x50_q85.jpg)
Hepta 9axis Sensor(Accelerometer)
Dependencies: mbed HeptaBattery Hepta9axis
Fork of Lab7-01_template by
main.cpp
- Committer:
- HEPTA
- Date:
- 2019-08-19
- Revision:
- 18:d4a7c3909c08
- Parent:
- 17:8a40733a9d1a
File content as of revision 18:d4a7c3909c08:
#include "mbed.h" #include "HeptaBattery.h" #include "Hepta9axis.h" Serial pc(USBTX,USBRX); HeptaBattery battery(p16,p26); Hepta9axis n_axis(p28,p27,0xD0,0x18); int main() { pc.baud(9600); float ax,ay,az; pc.printf("Accel Sensor Mode\r\n"); for(int i = 0; i<50; i++) { n_axis.sen_acc(&ax,&ay,&az); pc.printf("%f,%f,%f\r\n",ax,ay,az); wait(1.0); } }