Subversion Repositories DashDisplay

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 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_DIALS 2
12
#define MAX_PUSHBUTTONS 2
13
 
44 mjames 14
static const int DEBOUNCE_TIME = 10;
15
static const int FAST_DEBOUNCE_TIME = 1;
2 mjames 16
extern volatile int push_pos[MAX_PUSHBUTTONS];
44 mjames 17
extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state
2 mjames 18
 
44 mjames 19
extern volatile int dial_pos[MAX_DIALS];
20
extern volatile int dial_count[MAX_DIALS];
21
 
22
 
14 mjames 23
extern void reset_dial(int dial,int value);
2 mjames 24
 
25
extern void HandleSwitches(void);
26
 
27
 
28
 
29
#endif /* INC_SWITCHES_H_ */