Does anyone here have a code example for Digital compass HM55B
Writing in FlowCode 4 four PICmicro
Or who can make an example?
Show Web-link:
http://arduinoforum.dk/index.php/vejled ... mpas-hm55b
Digital kompas HM55B
Moderator: Benj
-
- Posts: 12
- Joined: Thu Mar 11, 2010 8:10 am
- Location: Danmark
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Digital kompas HM55B
It looks like this device uses an SPI-like interface, but requires 4 bits of data instead of the standard 8. I think you'll need to "bit bang" the data rather than using the hardware serial module of the chip.
The link you have gives all the necessary code. You'll just need to "translate" it to BoostC and embed it into your flowchart.
The link you have gives all the necessary code. You'll just need to "translate" it to BoostC and embed it into your flowchart.