Hello all,
i have robotics project with HMC6352, but this sensor doesn't work with mbed, i have tried it with arduino, it's perfect.
But with mbed i don't understand, i use the library of Aaron Berk and it doesn't work.
My programming :
#include "mbed.h"
#include "HMC6352.h"
DigitalOut myled(LED1);
Serial pc(USBTX, USBRX);
HMC6352 compass(p9, p10);
int main()
{
pc.printf("\n\rStart compass mode \n\r");
compass.setOpMode(HMC6352_CONTINUOUS, 1, 20);
while(1) {
pc.printf("\n\r En attente \n\r");
pc.printf("\n\r Heading : %4d \n\r", compass.sample());
wait (0.1);
}
}
I use TeraTerm, any response, the same with HMC6352 example (from library)
So can you help me to understand ?
Thanks !
Hello all,
i have robotics project with HMC6352, but this sensor doesn't work with mbed, i have tried it with arduino, it's perfect.
But with mbed i don't understand, i use the library of Aaron Berk and it doesn't work.
My programming :
I use TeraTerm, any response, the same with HMC6352 example (from library)
So can you help me to understand ? Thanks !