UP 模拟器 加入key的模拟支持
This commit is contained in:
@@ -37,6 +37,7 @@ void drawOledPixel(int oledX, int oledY) {
|
||||
|
||||
|
||||
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
|
||||
BeginBatchDraw();
|
||||
cleardevice();
|
||||
for (int y = 0; y < height; y++) {
|
||||
for (int x = 0; x < width; x++) {
|
||||
@@ -47,6 +48,7 @@ void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
|
||||
}
|
||||
}
|
||||
}
|
||||
EndBatchDraw();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user