Crate ace128_driver[][src]

Platform-agnostic driver for reading a Bourns Absolute Contact Encoder Bourns Absolute Contact Encoder (ACE-128) using embedded-hal.



Holds the GPIO pins in use by the encoder.



Maps the output of the 8 GPIO pins onto an encoder position. The array index is the ‘Decimal Output’ of the GPIO pins, and the value at the index is the corresponding ‘Position’. Only 128 valid positions exist for the 256 states (28 x GPIO) therefore invalid positions return None. See datasheet for more details.