blob: 7ffe49f1f7965a2d37dfb54da2899e7f6a80ac65 (
plain)
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
|
# Features
- Uses GPIO - no FSMC interface needed - portable to any controller
- All four modes are Supported:
- Portrait
- Landscape
- Portrait inverted
- Landscape inverted
- Supported drawing functions:
- Pixels
- Lines
- Rectanges (frames/filled)
- Circles (frames/filled)
- character
- string
# Install
## checkout Driver code into ext/
cd chibios/ext
git clone https://github.com/tectu/Chibios-LCD-Driver lcd
## Edit Makefile:
include lcd.mk:
include $(CHIBIOS)/ext/lcd/lcd.mk
Add $(LCDSRC) to CSRC:
CSRC = $(PORTSRC) \
$(KERNSRC) \
$(TESTSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
$(FATFSSRC) \
$(LCDSRC) \
$(CHIBIOS)/os/various/evtimer.c \
$(CHIBIOS)/os/various/syscalls.c
Add $(LCDINC) to INCDIR:
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
$(FATFSINC) \
$(LCDINC) \
$(CHIBIOS)/os/various ../common
## Use
include glcd.h header file wherever you need it.
|