add SH1107 driver

TODO: auto detect
This commit is contained in:
balika011 authored and marqs committed 2025-04-19 12:16:16 +03:00
1 parent 6b554e4088
commit 933dbbaa75
5 files changed
+1521

No files matched your search

+9
View File
@@ -19,13 +19,22 @@
#include "lcd.h"
#include "st7032.h"
#include "sh1107.h"
void lcd_init()
{
#ifndef HAS_SH1107
st7032_init();
#else
sh1107_init();
#endif
}
void lcd_write(char *row1, char *row2)
{
#ifndef HAS_SH1107
st7032_write(row1, row2);
#else
sh1107_write(row1, row2);
#endif
}