AGC debugging option

This commit is contained in:
Krzysiek Egzmont
2023-12-04 22:58:27 +01:00
parent e039e65ee4
commit f3297c29cb
6 changed files with 70 additions and 1 deletions

View File

@@ -56,6 +56,14 @@ void ST7565_BlitFullScreen(void)
SPI_ToggleMasterMode(&SPI0->CR, true);
}
void ST7565_BlitLine(unsigned line)
{
SPI_ToggleMasterMode(&SPI0->CR, false);
ST7565_WriteByte(0x40); // start line ?
DrawLine(0, line+1, gFrameBuffer[line], LCD_WIDTH);
SPI_ToggleMasterMode(&SPI0->CR, true);
}
void ST7565_BlitStatusLine(void)
{ // the top small text line on the display
SPI_ToggleMasterMode(&SPI0->CR, false);