sosandroid / AMS_AS5048B

Arduino Lib for AMS AS5048B I2C - 14-bit magnetic rotary position sensor
Other
48 stars 29 forks source link

OTP Burn Sequence Implementation #4

Closed brentyi closed 7 years ago

brentyi commented 7 years ago

Implemented the programming sequence and added a relevant example, as per AMS's application note on slave address programming for the 5048B:

This also works for burning the zero position, and is pretty much the same as their recommended procedure for doing so. It's just missing the verification step, which can be easily done by the user or implemented as a separate function.

I also took the liberty of updating the README and cleaning up some whitespace inconsistencies -- let me know if there are any issues with any of my changes!