HW_Lib/sim/oled/oled.cpp

23 lines
469 B
C++
Raw Normal View History

2024-06-22 11:13:18 +00:00
#include "sim_oled.h"
#include "graphics.h"
#include <conio.h>
2024-06-22 11:26:54 +00:00
void SIM_OLED_INIT(int width, int height, uint32_t pixcolor, uint32_t backcolor, int scale, uint8_t b) {
2024-07-05 15:38:31 +00:00
SIM_Display_INIT(width,height,pixcolor,backcolor,scale,b);
2024-06-22 11:13:18 +00:00
}
void SIM_OLED_START() {
2024-07-05 15:38:31 +00:00
SIM_Display_START();
2024-06-22 11:13:18 +00:00
}
void SIM_OLED_STOP() {
2024-07-05 15:38:31 +00:00
SIM_Display_STOP();
2024-06-22 11:13:18 +00:00
}
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
2024-07-05 15:38:31 +00:00
SIM_OneColor_DrawFromBuffer(buf,width,height);
2024-06-22 11:13:18 +00:00
}