-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUI.h
41 lines (33 loc) · 823 Bytes
/
UI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*********************************************************************
miniSDR v3
By DD4WH and Frank Bösing
GPL V3
- Userinterface -
**********************************************************************/
#ifndef sdr_ui_h_
#define sdr_ui_h_
//-------------------------------------------------------
//Pins:
//4-way tactile switch:
#define BTN_DEBOUNCE 10 //(ms)
#define BTN_CENTER 3
#define BTN_UP 1
#define BTN_DOWN 4
#define BTN_LEFT 0
#define BTN_RIGHT 2
//encoder:
#if DBGFRANKB
#define ENC_1 25
#define ENC_2 26
#define ENC_CENTER 24
#else
#define ENC_1 7
#define ENC_2 8
#define ENC_CENTER 10
#endif
//-------------------------------------------------------
void initUI(void);
void UI(void);
void showFreq(void);
void showSpectrum(int16_t * data);
#endif