PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Display
liblcdParallel
lcdParallel_createChar.c
Go to the documentation of this file.
1
18
#include "
lcdParallel.h
"
19
20
// Allows us to fill the first 8 CGRAM locations
21
// with custom characters
22
void
lcdParallel_createChar
(lcdParallel *device,
char
loc,
char
charmap[]) {
23
loc &= 0x7;
// we only have 8 locations 0-7
24
lcdParallel_send
(device, LCDP_SETCGRAMADDR | (loc << 3), LCDP_SEND_COMMAND);
25
for
(
int
i=0; i<8; i++) {
26
lcdParallel_send
(device, charmap[i], LCDP_SEND_WRITE);
27
}
28
}
29
lcdParallel_createChar
void lcdParallel_createChar(lcdParallel *device, char loc, char charmap[])
Create and store a custom character in the display's CGRAM memory.
Definition:
lcdParallel_createChar.c:22
lcdParallel.h
Display driver for character LCD screens based on Hitachi HD44780 (or compatible) chipsets,...
lcdParallel_send
void lcdParallel_send(lcdParallel *device, char value, char mode)
Low-level function used to transmit data to the display.
Definition:
lcdParallel_send.c:26
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17