We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:c2_rotary-encoder_on_android [2017/04/11 15:27]
luke.go created
en:c2_rotary-encoder_on_android [2017/04/12 16:38] (current)
codewalker
Line 9: Line 9:
 This page explains how to use the Rotary-Encoder example. \\ This page explains how to use the Rotary-Encoder example. \\
 It can be used for volume control, page up/down and etc. \\ It can be used for volume control, page up/down and etc. \\
-This is a Rotary-Encoder control example App project. [[https://​github.com/​codewalkerster/​RotaryEncoder|Rotary-Encoder controller]] 
  
 +Rotary-Encoder control example App project : [[https://​github.com/​codewalkerster/​RotaryEncoder|Rotary-Encoder controller]] \\
 +Applied patches to kernel : [[https://​github.com/​hardkernel/​linux/​commit/​8ade58eac365fbc2386ce1a3663f1508c1431c99|patch 1]], [[https://​github.com/​hardkernel/​linux/​commit/​699df5848d06c0d527066a9ffef84ccc5e766a5d|patch 2]]\\
 +[[http://​www.bourns.com/​docs/​Product-Datasheets/​PEL12T.pdf|PEL12T Data sheet]]
 === Rotary-Encoder circuit === === Rotary-Encoder circuit ===
 +If you want to connect pin to another GPIO pin, please check GPIO description.[[en:​c2_hardware&#​expansion_connectors|GPIO Pin description]] \\
  
 {{:​en:​rotary_encoder_bb.png?​direct&​200|}} \\ {{:​en:​rotary_encoder_bb.png?​direct&​200|}} \\
 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|}} \\
-If you want to connect pin to another GPIO pin, please check GPIO description.[[en:c2_hardware&#​expansion_connectors|GPIO Pin description]]+ 
 +{{:en:rotary.jpg?​direct&300|}}
  
 === Result of using Rotary-Encoder and Controller app === === Result of using Rotary-Encoder and Controller app ===
Line 22: 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&​400|}} \\
  
-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&​400|}}
en/c2_rotary-encoder_on_android.1491893868.txt.gz · Last modified: 2017/04/11 15:27 by luke.go
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0