Code for AK8963 compass module


This is my first question.

I have made a PCB with an AK8963C compass module.

I use BASIC and SPI.

Not many others use BASIC anymore, but I can’t change I’m afraid.

For me Github is not easy to navigate, but I’ve found a program with the AK8963 in it here:

I don’t read ‘C’ programs very well, but from farther reading of the CODE, I see a mention of HMC5883L.  I have similar breakout boards, but they use I2C to access the AK8963 module, but I’m not sure if this is the case here.  I am looking for CODE that uses SPI independantly.

Cheers, Camerart

Hi @camerart1,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.

As you’ll notice, your topic is now here in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.