Debounce the inputs, drive an encoder module, and output a PWM signal for each encoder.
Twist each encoder and the LEDs attached to the outputs should change in brightness.
By setting the debug port to 0, 1 or 2, the internal value of each encoder is output on the bidirectional outputs.
Use 3 digital encoders attached to the first 6 inputs.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | enc0 a | pwm0 | encoder bit 0 |
1 | enc0 b | pwm1 | encoder bit 1 |
2 | enc1 a | pwm2 | encoder bit 2 |
3 | enc1 b | encoder bit 3 | |
4 | enc2 a | encoder bit 4 | |
5 | enc2 b | encoder bit 5 | |
6 | debug bit 0 | encoder bit 6 | |
7 | debug bit 1 | encoder bit 7 |