Skip to content

Commit

Permalink
Add st7565r driver
Browse files Browse the repository at this point in the history
Add/port the old st7565 driver by Reel Multimedia
  • Loading branch information
Reelfan committed Mar 16, 2018
1 parent 3d48ee7 commit ae473c6
Show file tree
Hide file tree
Showing 8 changed files with 481 additions and 7 deletions.
1 change: 1 addition & 0 deletions HISTORY
@@ -1,5 +1,6 @@
GraphLCD base package Revision History
--------------------------------------
2018-03-16: port st7565r driver

2011-05-01: branch touchcol, first commit
- glcddrivers changes / enhancements:
Expand Down
2 changes: 2 additions & 0 deletions README
Expand Up @@ -26,6 +26,7 @@ based on the graphlcd plugin for the Video Disc Recorder
noritake800 driver by Lucian Muresan (lucianm AT users.sourceforge.net)
futaba dm140 driver by Stephan Skrodzki (skrodzki AT stevekist.de)
futaba md166 driver by Andreas Brachold <vdr07 AT deltab de>
st7565r driver by Georg Acher, BayCom GmbH based on simlcd.c by Carsten Siebholz, portedt by Ufuk Altinkaynak

Project's homepage: http://graphlcd.berlios.de/
GIT repo: http://projects.vdr-developer.org/projects/show/graphlcd
Expand All @@ -51,6 +52,7 @@ controllers/modules:
- Noritake GU256X64-3XX0 (serial or parallel)
- Noritake GU126x64D-K610A4 displays (parallel)
- Noritake 800 series displays
- Sitronix ST7565R (serial, also OLED Version from Grautec)
- all controllers supported by serdisplib (http://serdisplib.sourceforge.net)

Other controllers might be supported in the future.
Expand Down
38 changes: 38 additions & 0 deletions docs/DRIVER.st7565r
@@ -0,0 +1,38 @@
---------------------------------------------------------------------
GraphLCD driver library

The ST7565R driver
---------------------------------------------------------------------

Description
-----------
The ST7565R driver supports the Reelbox Frontpanel LCD Displays, and
the Grautec OLED Version. Connection is Serial


Configuration Parameters
------------------------
The ST7565R driver supports the following parameters in config
file:

Device
In a Reelbox enviroment the serial port was linked to /dev/frontpanel
Connected to "normal pc" use serial port for example /dev/ttyS0

Width
Sets the horizontal size of the display. If this parameter is not
given, a default value of 128 pixels is used.

Height
Sets the vertical size of the display. If this parameter is not
given, a default value of 64 pixels is used.

Brightness
Sets the brightness of your display's backlight.
Possible values: 0 <= x <= 100)
Default value: 100

Contrast
Sets the contrast of your display's.
Possible values: 0 <= x <= 100)
Default value: 100
4 changes: 2 additions & 2 deletions glcddrivers/Makefile
Expand Up @@ -4,7 +4,7 @@

-include ../Make.config

CXXFLAGS += -fPIC
CXXFLAGS += -fPIC -Wno-narrowing

VERMAJOR = 2
VERMINOR = 1
Expand All @@ -14,7 +14,7 @@ BASENAME = libglcddrivers.so

LIBNAME = $(BASENAME).$(VERMAJOR).$(VERMINOR).$(VERMICRO)

OBJS = common.o config.o driver.o drivers.o port.o simlcd.o framebuffer.o gu140x32f.o gu256x64-372.o gu256x64-3900.o hd61830.o ks0108.o image.o sed1330.o sed1520.o t6963c.o noritake800.o serdisp.o avrctl.o g15daemon.o network.o gu126x64D-K610A4.o dm140gink.o
OBJS = common.o config.o driver.o drivers.o port.o simlcd.o framebuffer.o gu140x32f.o gu256x64-372.o gu256x64-3900.o hd61830.o ks0108.o st7565_reel.o image.o sed1330.o sed1520.o t6963c.o noritake800.o serdisp.o avrctl.o g15daemon.o network.o gu126x64D-K610A4.o dm140gink.o

HEADERS = config.h driver.h drivers.h

Expand Down
11 changes: 6 additions & 5 deletions glcddrivers/drivers.h
Expand Up @@ -42,20 +42,21 @@ enum eDriver
kDriverDM140GINK = 16,
kDriverFutabaMDM166A = 17,
#ifdef HAVE_DRIVER_AX206DPF
kDriverAX206DPF = 18,
kDriverAX206DPF = 19,
#endif
#ifdef HAVE_DRIVER_picoLCD_256x64
kDriverPicoLCD_256x64 = 19,
kDriverPicoLCD_256x64 = 20,
#endif
#ifdef HAVE_DRIVER_VNCSERVER
kDriverVncServer = 20,
kDriverVncServer = 21,
#endif
#ifdef HAVE_DRIVER_SSD1306
kDriverSSD1306 = 21,
kDriverSSD1306 = 22,
#endif
#ifdef HAVE_DRIVER_ILI9341
kDriverILI9341 = 22,
kDriverILI9341 = 23,
#endif
kDriverST7565R = 24,
kDriverSerDisp = 100,
kDriverG15daemon = 200
};
Expand Down

0 comments on commit ae473c6

Please sign in to comment.