Add display inversion for cooling

This commit is contained in:
Ben V. Brown
2017-08-13 12:48:16 +10:00
parent a9da6d511b
commit 1d602bd9a1
3 changed files with 16 additions and 10 deletions

View File

@@ -136,7 +136,10 @@ void Oled_DrawArea(u8 x, u8 y, u8 wide, u8 height, const u8* ptr) {
}
}
void OLED_InvertBuffer() {
for (uint16_t i = 0; i < (2 * 96); i++)
displayBuffer[i] = ~displayBuffer[i];
}
/*******************************************************************************
Function:GPIO_Init_OLED
Description:Init the outputs as needed for the OLED (in this case the RST line)