PeterBLITZ / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

support rotary encoder #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

create new event source

see also
http://arduino.cc/forum/index.php/topic,114362.0.html

Original issue reported on code.google.com by olikr...@gmail.com on 16 Jul 2012 at 10:21

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 16 Jul 2012 at 10:34

GoogleCodeExporter commented 8 years ago
option 1:
- introduce a new "virtual" key, ROTARY0 and ROTARY1
- allow to connect these keyes to setPin 
(http://code.google.com/p/m2tklib/wiki/fnref#setPin)
- this will trigger an internal state machine to generate up/down messages

option 2:
write new event source

Original comment by olikr...@gmail.com on 17 Jul 2012 at 5:08

GoogleCodeExporter commented 8 years ago
introduced two new keys:
M2_KEY_ROT_ENC_A
M2_KEY_ROT_ENC_B

and the new event source:
m2_es_arduino_rotary_encoder

documentation required, also make clear, that the check procedure must be 
called within the picture loop

Original comment by olikr...@gmail.com on 28 Jul 2012 at 8:26

GoogleCodeExporter commented 8 years ago
assign two pins of the incremental encoder with
m2.setPin(M2_KEY_ROT_ENC_A, 4);
m2.setPin(M2_KEY_ROT_ENC_B, 5);

use the new event source:
M2tk m2(&top_menu, m2_es_arduino_rotary_encoder, m2_eh_4bs, m2_gh_u8g_ffs);

other buttons can/must be set as usual

Original comment by olikr...@gmail.com on 4 Aug 2012 at 8:09

GoogleCodeExporter commented 8 years ago
started u8g example "RotEnc.pde"
started tutorial 9 about rotary encoder

todo
- finish example
- port example
- finish t09
- write avr event source with rotary encoder

Original comment by olikr...@gmail.com on 5 Oct 2012 at 8:07

GoogleCodeExporter commented 8 years ago
finished t09

todo:
- port RecEnc.pde example to LC and GLCD
- write avr event source with rotary encoder

Original comment by olikr...@gmail.com on 6 Oct 2012 at 5:03

GoogleCodeExporter commented 8 years ago
examples for glcd, u8g and lc created and added to the release
glcd and u8g tested
lc needs testing

Original comment by olikr...@gmail.com on 6 Oct 2012 at 7:15

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 6 Oct 2012 at 7:19

GoogleCodeExporter commented 8 years ago
lc tested, sourced modified, gh updated (M2_GFX_MSG_DRAW_NORMAL_DATA_ENTRY)

todo:
- rotary encoder for avr event source 
- avr testing

Original comment by olikr...@gmail.com on 14 Oct 2012 at 9:24

GoogleCodeExporter commented 8 years ago
rotary encorder for avr implemented and tested

Original comment by olikr...@gmail.com on 17 Oct 2012 at 10:05