Skip to content

Commit 5b8792d

Browse files
committed
add ssd1315 to display_driver.c and change model name to keep compatibility
1 parent 05d8539 commit 5b8792d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

display_driver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Context *display_create_port(GlobalContext *global, term opts)
6767
ctx = ili948x_display_create_port(global, opts);
6868
} else if (!strcmp(compat_string, "solomon-systech,ssd1306")) {
6969
ctx = ssd1306_display_create_port(global, opts);
70+
} else if (!strcmp(compat_string, "solomon-systech,ssd1315")) {
71+
ctx = ssd1306_display_create_port(global, opts);
7072
} else if (!strcmp(compat_string, "sino-wealth,sh1106")) {
7173
ctx = ssd1306_display_create_port(global, opts);
7274
} else if (!strcmp(compat_string, "sitronix,st7789")

ssd1306_display_driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ static void display_init(Context *ctx, term opts)
186186
return;
187187
}
188188

189-
if(!strcmp(compat_string, "solomon,ssd1306")) {
189+
if(!strcmp(compat_string, "solomon-systech,ssd1306")) {
190190
spi->type = DISPLAY_SSD1306;
191-
} else if(!strcmp(compat_string, "solomon,ssd1315")) {
191+
} else if(!strcmp(compat_string, "solomon-systech,ssd1315")) {
192192
spi->type = DISPLAY_SSD1315;
193193
} else if(!strcmp(compat_string, "sino-wealth,sh1106")) {
194194
spi->type = DISPLAY_SH1106;

0 commit comments

Comments
 (0)