Compass library and sample code

Based on my original work on Hexxagon and @bigjosh’s implementation as the “The North Face” sample code, I wrote a library (and sample code) so make it easy to make all connected Blinks to be aware of a global compass so they all know how they are oriented in relation to all other Blinks. The only input needed is the remote face (the face the Blink connected to us is sending messages) and the local face (the face where we are receiving those messages.

This remote face information can be sent as either face values or as datagrams and the code includes an example using face values.

For a change, you do not require the Custom Blinklib for this one. :slight_smile:

The code uses git submodules so to get it you need to do:

git clone --recurse-submodules http://github.com/brunoga/blinks-orientation

4 Likes