UP 通用OLED
This commit is contained in:
1 parent
8b0426a9e0
commit
a1624f0682
6 files changed
+77
-9
No files matched your search
@@ -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