Allows us to fill the first 8 CGRAM locations with custom characters This also sets cursor to 0.0
| 278 | // with custom characters |
| 279 | // This also sets cursor to 0.0 |
| 280 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected