mirror of
https://github.com/marqs85/ossc
synced 2026-11-02 13:17:18 +03:00
add SH1107 driver
TODO: auto detect
This commit is contained in:
1 parent
6b554e4088
commit
933dbbaa75
5 files changed
+1521
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user