MoBoStamp-pe Motherboard and Hitachi HM55B Compass Module
Tony Kocica
Posts: 2
Anyone have any insight on how to convert the sample code provided in the compass documentation to work with the the MoBoStamp-pe Motherboard? I understand the principle of the AVR comprocessors and the daughterboard interface.·I'm having trouble understanding how to replace the SHIFTIN and SHIFTOUT commands in the sample code·to the equivalent OWOUT and OWIN commands for use with the GPIO firmware.
Comments
The GPIO3 firmware does not support shift operations. But that's okay: you don't have to use the coprocessor for this. Just connect the HM55B to pins that are either exclusive to the Stamp or shared between the Stamp and AVR. Then you can use SHIFTIN and SHIFTOUT in the normal way.
-Phil