Write a character to one of the 8 CGRAM locations, available as chr(0) through chr(7).
(self, location, charmap)
| 162 | self.putchar(char) |
| 163 | |
| 164 | def custom_char(self, location, charmap): |
| 165 | """Write a character to one of the 8 CGRAM locations, available |
| 166 | as chr(0) through chr(7). |
| 167 | """ |
| 168 | location &= 0x7 |
| 169 | self.hal_write_command(self.LCD_CGRAM | (location << 3)) |
| 170 | self.hal_sleep_us(40) |
| 171 | for i in range(8): |
| 172 | self.hal_write_data(charmap[i]) |
| 173 | self.hal_sleep_us(40) |
| 174 | self.move_to(self.cursor_x, self.cursor_y) |
| 175 | |
| 176 | def hal_backlight_on(self): |
| 177 | """Allows the hal layer to turn the backlight on. |
no test coverage detected