-
Notifications
You must be signed in to change notification settings - Fork 1
/
antenna_array_controller_pins.h
executable file
·51 lines (39 loc) · 1.74 KB
/
antenna_array_controller_pins.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
42
43
44
45
46
47
48
/* ------------------------------------- Pin Definitions ------------------------------------------
You need to look at these and set them appropriately !
Most pins can be disabled by setting them to 0 (zero). If you're not using a pin or function, set it to 0.
*/
#define button_cw 0 // normally open button to ground for manual CW rotation (schematic pin: A1)
#define button_ccw 0 // normally open button to ground for manual CCW rotation (schematic pin: A2)
#define button_flip 0 // flip to long path (+/- 180 degrees)
#define serial_led 0 // LED blinks when command is received on serial port (set to 0 to disable)
#define blink_led 13 // "run" LED - links every second (set to 0 to disable)
// antenna binary output pins (set to 0 to disable)
#define binary_output_bit_0 6 // least significant bit
#define binary_output_bit_1 7
#define binary_output_bit_2 8
#define binary_output_bit_3 9 // most significant bit
//classic 4 bit LCD pins
#define lcd_4_bit_rs_pin 12
#define lcd_4_bit_enable_pin 11
#define lcd_4_bit_d4_pin 5
#define lcd_4_bit_d5_pin 4
#define lcd_4_bit_d6_pin 3
#define lcd_4_bit_d7_pin 2
// rotary encoder pins
#define rotary_encoder_pin1 A3 //0
#define rotary_encoder_pin2 A2 //0
// outputs for Comtek ACB-4 unit https://static.dxengineering.com/global/images/instructions/com-acb-80-a.pdf
//
// set to 0 (zero) to disable
//
// bit
// -------------------
// Degrees 1 0
// ------- -------- --------
// 45 INACTIVE INACTIVE
// 135 INACTIVE ACTIVE
// 225 ACTIVE INACTIVE
// 315 ACTIVE ACTIVE
//
#define comtek_45_135_225_315_bit_0 0
#define comtek_45_135_225_315_bit_1 0