![](/media/cache/profiles/2e74f94b232c5a0cc3e75b4eaaf64c90.jpg.50x50_q85.jpg)
Hepta 9axis Sensor(Magnetometer)
Dependencies: mbed HeptaBattery Hepta9axis
Fork of Lab7-01_template by
Diff: main.cpp
- Revision:
- 15:a855e4225cf9
- Parent:
- 14:ebfbfbea3d7c
- Child:
- 16:9dc19bd7b8ff
diff -r ebfbfbea3d7c -r a855e4225cf9 main.cpp --- a/main.cpp Thu Sep 07 13:57:04 2017 +0000 +++ b/main.cpp Sat Aug 17 08:57:30 2019 +0000 @@ -3,9 +3,10 @@ Serial pc(USBTX,USBRX); Hepta9axis n_axis(p28,p27,0xD0,0x18); - +DigitalOut EN(p26); int main() { + EN = 1; // EN pin : high pc.baud(9600); float mx,my,mz; pc.printf("Magnetometer Mode\r\n");