Skip to content

Commit

Permalink
resolve display driver linkage error
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Jul 8, 2024
1 parent 37a48b7 commit 07df6a6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions graphic_display/graphic_display_u8g2.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,20 +482,18 @@ DISPLAY_INIT(ssd1306_128x64_i2c)
u8g2_Setup_ssd1306_i2c_128x64_noname_f(U8G2, U8G2_R0, u8x8_byte_ucnc_hw_i2c, u8x8_gpio_and_delay_ucnc);
}

DECL_DISPLAY(ssd1306_128x64_i2c, 128, 64);

DISPLAY_INIT(st7920_128x64_spi)
{
u8g2_Setup_st7920_s_128x64_f(U8G2, U8G2_R0, u8x8_byte_ucnc_hw_spi, u8x8_gpio_and_delay_ucnc);
}

DECL_DISPLAY(st7920_128x64_spi, 128, 64);

DISPLAY_INIT(virtual_sdl)
{
u8g2_SetupBuffer_SDL_128x64(U8G2, U8G2_R0);
}

DECL_DISPLAY(virtual_sdl, 128, 64);

#endif

extern "C" DECL_DISPLAY(ssd1306_128x64_i2c, 128, 64);
extern "C" DECL_DISPLAY(st7920_128x64_spi, 128, 64);
extern "C" DECL_DISPLAY(virtual_sdl, 128, 64);

0 comments on commit 07df6a6

Please sign in to comment.