Hepta 9axis Sensor(Gyroscope)
Dependencies: mbed HeptaBattery Hepta9axis
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 16:c238ef7aa7e5
- Parent:
- 15:1d9772c3fe72
- Child:
- 17:e4a3f3d5ee58
--- a/main.cpp Sat Aug 17 08:51:09 2019 +0000 +++ b/main.cpp Mon Aug 19 05:38:14 2019 +0000 @@ -1,9 +1,10 @@ #include "mbed.h" +#include "HeptaBattery.h" #include "Hepta9axis.h" +Serial pc(USBTX,USBRX); +HeptaBattery battery(p19,p26); +Hepta9axis n_axis(p28,p27,0xD0,0x18); -Serial pc(USBTX,USBRX); -Hepta9axis n_axis(p28,p27,0xD0,0x18); -DigitalOut EN(p26); int main() { EN = 1; // EN pin : high