UP 通用OLED

main
JiXieShi 2024-06-22 16:42:53 +08:00
parent c784f3ca96
commit 453538b610
1 changed files with 4 additions and 4 deletions

View File

@ -4,12 +4,12 @@
#include "tool.h"
#include "t_oled.h"
void Cmd(uint8_t *data, size_t l) {
uint8_t Cmd(uint8_t *data, size_t l) {
Buf_Print("Cmd", data, l, 16);
}
void Data(uint8_t *data, size_t l) {
Buf_Print("Data", data, l, 16);
uint8_t Data(uint8_t *data, size_t l) {
Buf_Print("Data", data, l, 128);
}
void Refresh_Call(OLED_T *dev) {
@ -21,7 +21,7 @@ uint8_t oledbuf[8][128] = {0};
void Test_OLED() {
OLED_T oled = {
.height=(uint8_t) 64,
.height=64,
.width=128,
.state=IDLE,
.buf=oledbuf,