ugfx/README.md

53 lines
957 B
Markdown
Raw Normal View History

2012-05-29 00:14:15 +00:00
## Features
2012-05-23 11:29:39 +00:00
2012-05-29 00:17:20 +00:00
- Uses GPIO - no FSMC interface needed - portable to any controller
- Supported drawing functions:
2012-05-29 00:14:15 +00:00
- Pixels
- Lines
- Rectanges (frames/filled)
- Circles (frames/filled)
- character
- string
2012-05-29 00:17:20 +00:00
2012-05-29 00:14:15 +00:00
# Install
## checkout Driver code into ext/
2012-05-23 11:29:39 +00:00
cd chibios/ext
git clone https://github.com/tectu/Chibios-LCD-Driver lcd
2012-05-29 00:14:15 +00:00
## Edit Makefile:
2012-05-23 11:29:39 +00:00
include lcd.mk:
include $(CHIBIOS)/ext/lcd/lcd.mk
Add $(LCDSRC) to CSRC:
2012-05-23 11:32:11 +00:00
CSRC = $(PORTSRC) \
$(KERNSRC) \
$(TESTSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
$(FATFSSRC) \
$(LCDSRC) \
$(CHIBIOS)/os/various/evtimer.c \
$(CHIBIOS)/os/various/syscalls.c
2012-05-23 11:29:39 +00:00
Add $(LCDINC) to INCDIR:
2012-05-23 11:32:11 +00:00
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
$(FATFSINC) \
$(LCDINC) \
$(CHIBIOS)/os/various ../common
2012-05-23 11:29:39 +00:00
2012-05-29 00:14:15 +00:00
## Use
2012-05-23 11:32:11 +00:00
include glcd.h header file wherever you need it.
2012-05-23 11:29:39 +00:00