MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / createChar

Method createChar

examples/AllProtocolsOnLCD/LiquidCrystal.cpp:280–287  ·  view source on GitHub ↗

Allows us to fill the first 8 CGRAM locations with custom characters This also sets cursor to 0.0

Source from the content-addressed store, hash-verified

278// with custom characters
279// This also sets cursor to 0.0
280void LiquidCrystal::createChar(uint8_t location, uint8_t charmap[]) {
281 location &= 0x7; // we only have 8 locations 0-7
282 command(LCD_SETCGRAMADDR | (location << 3));
283 for (int i=0; i<8; i++) {
284 write(charmap[i]);
285 }
286 // command(LCD_SETDDRAMADDR); // set cursor to 0.0, this avoids overwriting CGRAM by next write() command. Not contained anymore in the Arduino version
287}
288
289/*********** mid level commands, for sending data/cmds */
290

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected