Write to display register Pages 0-7 normal display Page 8 icon buffer
| 254 | // Pages 0-7 normal display |
| 255 | // Page 8 icon buffer |
| 256 | void LCD_writeDisplayReg( uint8_t page, uint8_t *buffer, uint8_t len ) |
| 257 | { |
| 258 | // Set the register page |
| 259 | LCD_writeControlReg( 0xB0 | ( 0x0F & page ) ); |
| 260 | |
| 261 | // Set display start line |
| 262 | LCD_writeControlReg( 0x40 ); |
| 263 | |
| 264 | // Reset Column Address |
| 265 | LCD_writeControlReg( 0x10 ); |
| 266 | LCD_writeControlReg( 0x00 ); |
| 267 | |
| 268 | // Write buffer to SPI |
| 269 | SPI_write( buffer, len ); |
| 270 | } |
| 271 | |
| 272 | void LCD_clearPage( uint8_t page ) |
| 273 | { |
no test coverage detected
searching dependent graphs…