From 07df6a6775997a39b2f2c8ac4d796a548327817b Mon Sep 17 00:00:00 2001 From: Paciente8159 Date: Mon, 8 Jul 2024 10:51:51 +0100 Subject: [PATCH] resolve display driver linkage error --- graphic_display/graphic_display_u8g2.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/graphic_display/graphic_display_u8g2.c b/graphic_display/graphic_display_u8g2.c index eb50717..875ecb7 100644 --- a/graphic_display/graphic_display_u8g2.c +++ b/graphic_display/graphic_display_u8g2.c @@ -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); \ No newline at end of file