Changes between Version 1 and Version 2 of ReverseEngineering/Encoders


Ignore:
Timestamp:
07/06/10 08:07:11 (14 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ReverseEngineering/Encoders

    v1 v2  
    3131 
    3232... 
     33 
     34//----------------------------------------------- 
     35// Check state of BMBT and RADIO rotary encoders 
     36// Call this method whenever there is a change in the encoder state (i.e. poll for change) 
     37//----------------------------------------------- 
    3338void check_encoders() 
    3439{ 
     
    8388 
    8489}}} 
     90 
     91Please note that this is just an example I extracted from my software. The method check_encoders() has to be called everytime when there is a change in encoder state. This can be achieved by polling the encoders. Other way could be to interface both encoders with PCF8574 and to wait on the interrupt indicating that output of encoders changed. The latter case is implemented in the hardware of OpenBM.