Subversion Repositories DashDisplay

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * switches.h
  3.  *
  4.  *  Created on: 6 Aug 2016
  5.  *      Author: Mike
  6.  */
  7.  
  8. #ifndef INC_SWITCHES_H_
  9. #define INC_SWITCHES_H_
  10.  
  11. #define MAX_SWITCHES 6
  12. #define MAX_DIALS 2
  13. #define MAX_PUSHBUTTONS 2
  14.  
  15. #define DEBOUNCE_TIME 10
  16. extern volatile int dial_pos[MAX_DIALS];
  17. extern volatile int push_pos[MAX_PUSHBUTTONS];
  18.  
  19. extern void zero_dial(int dial);
  20.  
  21. extern void HandleSwitches(void);
  22.  
  23.  
  24.  
  25. #endif /* INC_SWITCHES_H_ */
  26.