-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPinAllocation.h
More file actions
70 lines (55 loc) · 1.54 KB
/
PinAllocation.h
File metadata and controls
70 lines (55 loc) · 1.54 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* PinAllocation.h
*
* Created: 11.05.2022 19:11:09
* Author: qfj
*/
#ifndef PINALLOCATION_H_
#define PINALLOCATION_H_
#ifdef LEVELMETER
#ifdef ili9341
#define LCD_CLK PINB7 // Clock
#define LCD_RESET PINB6 // Reset Display
#define LCD_SELECT PINB2 // Cable Select
#define LCD_DC PINB4 // Data/Command
#define LCD_MOSI PINB5 // Send Data
#define LCD_LED PINB3 // LCD Backlight
#define LCD_PORT PORTB
#define LCD_LED_PORT PORTB
#define LCD_DDRB 255
#endif
#ifdef DISP_3000
#define LCD_CLK PINB7 // Clock
#define LCD_RESET PINB6 // Reset Display
#define LCD_SELECT PINB2 // Cable Select
#define LCD_DC PINB4 // Data/Command
#define LCD_MOSI PINB5 // Send Data
#define LCD_LED PINB3 //PIND6
#define LCD_PORT PORTB
#define LCD_LED_PORT PORTB
#endif
#endif // LEVELMETER
#ifdef GASCOUNTER_MODULE
#ifdef ili9341
#define LCD_CLK PINB7 // Clock
#define LCD_RESET PINB6 // Reset Display
#define LCD_SELECT PINB3 // Cable Select
#define LCD_DC PINB4 // Data/Command
#define LCD_MOSI PINB5 // Send Data
#define LCD_LED PIND6 // LCD Backlight
#define LCD_PORT PORTB
#define LCD_LED_PORT PORTD
#define LCD_DDRB 248
#endif
#ifdef GCM_old_disp
#define LCD_CLK PINB3 // Clock
#define LCD_RESET PINB6 // Reset Display
#define LCD_SELECT PINB7 // Cable Select
#define LCD_DC PINB5 // Data/Command
#define LCD_MOSI PINB4 // Send Data
#define LCD_LED PINB3 //PIND6
#define LCD_PORT PORTB
#define LCD_LED_PORT PORTB
#endif
#endif // GASCOUNTER_MODULE
#endif /* PINALLOCATION_H_ */