Ok, so I have a compass that works on ShiftIn and ShiftOut. I have looked all over to figure out how ShiftIn and ShiftOut works, and I have some good clues but nothing solid. Can anyone help? I have a feeling I am making this over complicated. It seems like it works like serial, but not quite.
The compass is the Hitachi HM55B from Parallax (http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/compass/List/0/SortField/4/ProductID/98/Default.aspx) The nice thing is they have example code in several languages on the page, however each example uses ShiftIn and ShiftOut. I would gladly write a driver to post if someone can tell me how this works.
I need this to work so badly. I have a robot that has no clue which way it is going.