UP 通用OLED
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user