2024-06-22 11:13:18 +00:00
|
|
|
#include "sim_oled.h"
|
|
|
|
|
2024-09-21 12:43:31 +00:00
|
|
|
static SIM_Display_t oled_display;
|
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-09-21 12:43:31 +00:00
|
|
|
SIM_Display_Init("OLED", width, height, pixcolor, backcolor, scale, &oled_display);
|
2024-06-22 11:13:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SIM_OLED_STOP() {
|
2024-09-21 12:43:31 +00:00
|
|
|
SIM_Display_STOP(&oled_display);
|
2024-06-22 11:13:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
|
2024-09-21 12:43:31 +00:00
|
|
|
SIM_OneColor_DrawFromBuffer(&oled_display, buf, width, height);
|
2024-06-22 11:13:18 +00:00
|
|
|
}
|