Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:c2_rotary-encoder_on_android [2017/04/12 16:21] codewalker |
en:c2_rotary-encoder_on_android [2017/04/12 16:27] luke.go |
||
---|---|---|---|
Line 19: | Line 19: | ||
The schematic of Rotary-Encoder circuit. \\ | The schematic of Rotary-Encoder circuit. \\ | ||
{{:en:rotary_encoder_schem.png?direct&200|}} \\ | {{:en:rotary_encoder_schem.png?direct&200|}} \\ | ||
+ | |||
+ | {{:en:rotary.jpg?direct&300|}} | ||
=== Result of using Rotary-Encoder and Controller app === | === Result of using Rotary-Encoder and Controller app === | ||
Line 24: | Line 26: | ||
[[http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlkeycodes.html|reference]] \\ | [[http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlkeycodes.html|reference]] \\ | ||
- | In first screen shot, Count clock wise operation is mapped to Volum Up, clock wise operations is mapped to Voluem Down and switch button(push the rotatry-encoder) is mapped to mute key. \\ | + | In first screen shot, Count clock wise operation is mapped to Volume Down, clock wise operations is mapped to Volume Up and switch button(push the Rotary-encoder) is mapped to mute key. \\ |
- | {{:en:volume_control.png?direct&200|}} \\ | + | {{:en:volume_control.png?direct&800|}} \\ |
In second, Count clock wise operation is mapped to KEYCODE_DPAD_DOWN, clock wise operations is mapped to KEYCODE_DPAD_UP, and switch button is mapped to KEYCODE_ENTER. \\ | In second, Count clock wise operation is mapped to KEYCODE_DPAD_DOWN, clock wise operations is mapped to KEYCODE_DPAD_UP, and switch button is mapped to KEYCODE_ENTER. \\ | ||
- | {{:en:up_down.png?direct&200|}} | + | {{:en:up_down.png?direct&800|}} |