HW_Lib/sim/oled/sim_oled.h

52 lines
1.1 KiB
C
Raw Normal View History

2024-06-22 11:13:18 +00:00
#ifndef HW_LIB_SIM_OLED_H
#define HW_LIB_SIM_OLED_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stdint.h"
#define WIDTH 1280
#define HEIGHT 640
/**
* @brief OLED
* @param pixcolor: []
* @param backcolor: []
* @param scale: []
* @param border: []
* @return void
* @example SIM_OLED_INIT(0xFFFF00, 0x000000, 2, true);
**/
void SIM_OLED_INIT(uint32_t pixcolor, uint32_t backcolor, int scale, bool border);
/**
* @brief OLED
* @return void
* @example SIM_OLED_START();
**/
void SIM_OLED_START();
/**
* @brief OLED
* @return void
* @example SIM_OLED_STOP();
**/
void SIM_OLED_STOP();
/**
* @brief OLED
* @param buf: []
* @param width: []
* @param height: []
* @return void
* @example SIM_OLED_DrawFromBuffer(buffer, 128, 64);
**/
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height);
#ifdef __cplusplus
}
#endif
#endif //HW_LIB_SIM_OLED_H