Changes between Version 1 and Version 2 of ReverseEngineering/Encoders
- Timestamp:
- 07/06/10 08:07:11 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ReverseEngineering/Encoders
v1 v2 31 31 32 32 ... 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 //----------------------------------------------- 33 38 void check_encoders() 34 39 { … … 83 88 84 89 }}} 90 91 Please 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.