UP 通用OLED
parent
c784f3ca96
commit
453538b610
|
@ -4,12 +4,12 @@
|
||||||
#include "tool.h"
|
#include "tool.h"
|
||||||
#include "t_oled.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);
|
Buf_Print("Cmd", data, l, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Data(uint8_t *data, size_t l) {
|
uint8_t Data(uint8_t *data, size_t l) {
|
||||||
Buf_Print("Data", data, l, 16);
|
Buf_Print("Data", data, l, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Refresh_Call(OLED_T *dev) {
|
void Refresh_Call(OLED_T *dev) {
|
||||||
|
@ -21,7 +21,7 @@ uint8_t oledbuf[8][128] = {0};
|
||||||
|
|
||||||
void Test_OLED() {
|
void Test_OLED() {
|
||||||
OLED_T oled = {
|
OLED_T oled = {
|
||||||
.height=(uint8_t) 64,
|
.height=64,
|
||||||
.width=128,
|
.width=128,
|
||||||
.state=IDLE,
|
.state=IDLE,
|
||||||
.buf=oledbuf,
|
.buf=oledbuf,
|
||||||
|
|
Loading…
Reference in New Issue