The offical µGFX repository.
Go to file
2012-06-25 12:34:38 +02:00
demos added power modes demo 2012-06-23 16:00:52 +02:00
drivers ssd1289 driver fix 2012-06-25 12:34:38 +02:00
fonts.c Changes in the Text Rendering API 2012-06-12 18:06:06 +05:30
fonts.h Changes in the Text Rendering API 2012-06-12 18:06:06 +05:30
glcd.c whitespaces 2012-06-24 18:28:57 +02:00
glcd.h ssd1289 powermodes implemented (powerOn, powerOff, sleepOn, sleepOff) 2012-06-23 14:04:56 +02:00
glcdconf.h revert glcdconf.h 2012-06-19 23:36:39 +01:00
graph.c some fix, just esthetical 2012-06-23 21:34:24 +02:00
graph.h graphDrawSystem() does take now grid-X and grid-Y values 2012-06-23 21:15:31 +02:00
gui.c guiInit() returns pointer to created thread 2012-06-25 10:52:52 +02:00
gui.h guiInit() returns pointer to created thread 2012-06-25 10:52:52 +02:00
lcd.mk restructure 2012-06-17 01:30:12 +02:00
LICENSE added license file 2012-06-07 22:38:30 +02:00
readme ssd1289 GPIO interface abstraction 2012-06-24 17:37:33 +02:00
touchpad.c added support for 3D touchpads 2012-06-15 10:18:52 +02:00
touchpad.h c++ compatibility, FSMC driver for ssd1289 2012-06-19 20:05:01 +01:00

Chibios LCD Driver

### checkout Driver code into ext/
cd chibios/ext
git clone https://github.com/tectu/Chibios-LCD-Driver lcd

### Edit boardfiles:
add the following to your board.h file, matching to your pinconfig:
	#define TP_PORT					GPIOC
	#define TP_IRQ					4
	#define TP_CS					6

	#define LCD_DATA_PORT_1			GPIOB
	#define LCD_DATA_PORT_2			GPIOB
	#define LCD_DATA_PORT_3			GPIOC
	#define LCD_DATA_PORT_4			GPIOE
	#define LCD_DATA_PORT_1_BASE	12
	#define LCD_DATA_PORT_2_BASE	8
	#define LCD_DATA_PORT_3_BASE	4
	#define LCD_DATA_PORT_4_BASE	0	
	#define LCD_CMD_PORT			GPIOD
	#define LCD_CS					12
	#define LCD_RS					13
	#define LCD_WR					14
	#define LCD_RD					15

in this example we use the following pin config for 16-bit GPIO interfacing:

	GPIOB 8-15
	GPIOC 4-7
	GPIOE 0-3

### 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
1. include header files wherever you need it.

2. select the controller type you want to use in glcdconf.h

### Maintainer & Contributors
Contributors:	- Badger
				- Abhishek 

Maintainer:		- Joel Bodenmann aka Tectu <joel@unormal.org>