UP 通用OLED

This commit is contained in:
JiXieShi
2024-06-22 15:21:15 +08:00
parent 8b0426a9e0
commit a1624f0682
6 changed files with 77 additions and 9 deletions

View File

@@ -44,10 +44,11 @@ void OLED_Turn(OLED_T *dev, bool e) {
}
void OLED_Refresh(OLED_T *dev) {
uint8_t i, cmd[3] = {0xb0, 0x00, 0x10};
#if REFRESH_CALL_ENABLE
dev->call();
dev->call(dev);
#else
uint8_t i, cmd[3] = {0xb0, 0x00, 0x10};
if (dev->state == IDLE) {
dev->state = REFRESH;
for (i = 0; i < (dev->height >> 3); i++) {