mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
Add an ST7567 LCD driver for ZKIT-ARM-1769
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5772 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -227,6 +227,63 @@ config UG9664HSWAG01_POWER
|
||||
|
||||
endif
|
||||
|
||||
config LCD_ST7567
|
||||
bool "ST7567 LCD Display Module"
|
||||
default n
|
||||
---help---
|
||||
LCD Display Module, ST7567, Univision Technology Inc. Used
|
||||
with the LPCXpresso and Embedded Artists base board.
|
||||
|
||||
Required LCD driver settings:
|
||||
LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
|
||||
LCD_MAXPOWER should be 1: 0=off, 1=on
|
||||
|
||||
Required SPI driver settings:
|
||||
SPI_CMDDATA - Include support for cmd/data selection.
|
||||
|
||||
if LCD_ST7567
|
||||
|
||||
config ST7567_SPIMODE
|
||||
int "ST7567 SPI Mode"
|
||||
default 0
|
||||
---help---
|
||||
Controls the SPI mode
|
||||
|
||||
config ST7567_FREQUENCY
|
||||
int "ST7567 SPI Frequency"
|
||||
default 3500000
|
||||
---help---
|
||||
Define to use a different bus frequency
|
||||
|
||||
config ST7567_NINTERFACES
|
||||
int "Number of ST7567 Devices"
|
||||
default 1
|
||||
---help---
|
||||
Specifies the number of physical ST7567 devices that will be
|
||||
supported. NOTE: At present, this must be undefined or defined to be 1.
|
||||
|
||||
config ST7567_POWER
|
||||
bool "Power control"
|
||||
default n
|
||||
---help---
|
||||
If the hardware supports a controllable LCD a power supply, this
|
||||
configuration should be defined. In this case the system must
|
||||
provide an interface ug_power().
|
||||
|
||||
config ST7567_XRES
|
||||
int "ST7567 X Resolution"
|
||||
default 128
|
||||
---help---
|
||||
Specifies the X resolution of the LCD.
|
||||
|
||||
config ST7567_YRES
|
||||
int "ST7567 Y Resolution"
|
||||
default 64
|
||||
---help---
|
||||
Specifies the Y resolution of the LCD.
|
||||
|
||||
endif
|
||||
|
||||
config LCD_UG2864AMBAG01
|
||||
bool "UG-2864AMBAG01 OLED Display Module"
|
||||
default n
|
||||
|
||||
@@ -67,6 +67,10 @@ ifeq ($(CONFIG_LCD_MIO283QT2),y)
|
||||
CSRCS += mio283qt2.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LCD_ST7567),y)
|
||||
CSRCS += st7567.c
|
||||
endif
|
||||
|
||||
# Include LCD driver build support
|
||||
|
||||
DEPPATH += --dep-path lcd
|
||||
|
||||
@@ -107,6 +107,9 @@ Re-usable LCD drivers reside in the drivers/lcd directory:
|
||||
that you will proably ahve to customize for any particular LCD
|
||||
hardware. (see also configs/hymini-stm32v/src/ssd1289.c below).
|
||||
|
||||
st7567.c. LCD Display Module, ST7567, Univision Technology Inc. Used
|
||||
with the LPCXpresso and Embedded Artists base board.
|
||||
|
||||
ug-9664hswag01.c. OLED Display Module, UG-9664HSWAG01", Univision
|
||||
Technology Inc. Used with the LPC Xpresso and Embedded Artists
|
||||
base board.
|
||||
|
||||
Reference in New Issue
Block a user