forked from derekja/antuinov2.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ks0108_Arduino.h
53 lines (44 loc) · 1.36 KB
/
ks0108_Arduino.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
49
50
51
52
53
/*
* ks0108_Arduino.h - User specific configuration for Arduino GLCD library
*
* Use this file to set io pins
* This version is for a standard ks0108 display
* connected using the default Arduino wiring
*
*/
#ifndef GLCD_PIN_CONFIG_H
#define GLCD_PIN_CONFIG_H
/*
* define name for pin configuration
*/
#define glcd_PinConfigName "ks0108-Arduino"
/*********************************************************/
/* Configuration for assigning LCD bits to Arduino Pins */
/*********************************************************/
/* Data pin definitions
*/
#define glcdData0Pin 5
#define glcdData1Pin 6
#define glcdData2Pin 7
#define glcdData3Pin 8
#define glcdData4Pin 9
#define glcdData5Pin 10
#define glcdData6Pin 11
#define glcdData7Pin 12
/* Arduino pins used for Commands
* default assignment uses the first five analog pins
*/
#define glcdCSEL1 13
#define glcdCSEL2 14
#if NBR_CHIP_SELECT_PINS > 2
#define glcdCSEL3 3 // third chip select if needed
#endif
#if NBR_CHIP_SELECT_PINS > 3
#define glcdCSEL4 2 // fourth chip select if needed
#endif
#define glcdRW 4
#define glcdDI 3
#define glcdEN 2
// Reset Bit - uncomment the next line if reset is connected to an output pin
//#define glcdRES 19 // Reset Bit
#endif //GLCD_PIN_CONFIG_H