MCPcopy Create free account
hub / github.com/kiibohd/controller / LCD_writeDisplayReg

Function LCD_writeDisplayReg

Scan/Devices/STLcd/lcd_scan.c:256–270  ·  view source on GitHub ↗

Write to display register Pages 0-7 normal display Page 8 icon buffer

Source from the content-addressed store, hash-verified

254// Pages 0-7 normal display
255// Page 8 icon buffer
256void 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
272void LCD_clearPage( uint8_t page )
273{

Callers 3

LCD_setupFunction · 0.85
cliFunc_lcdTestFunction · 0.85

Calls 2

LCD_writeControlRegFunction · 0.85
SPI_writeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…