From e645696caf7d117d4dcea35d3793500802ef10db Mon Sep 17 00:00:00 2001 From: wuhanstudio Date: Sat, 7 Aug 2021 11:20:34 +0100 Subject: [PATCH] fix U8x8 not inheriting Print --- port/U8x8lib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/port/U8x8lib.h b/port/U8x8lib.h index 2bd6de1d..34b5a21d 100644 --- a/port/U8x8lib.h +++ b/port/U8x8lib.h @@ -39,6 +39,7 @@ #include #include "u8g2_port.h" +#include "Print.h" extern "C" uint8_t u8x8_byte_rtthread_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); extern "C" uint8_t u8x8_byte_rtthread_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr); @@ -57,7 +58,7 @@ void u8x8_SetPin_KS0108(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_ void u8x8_SetPin_SED1520(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t dc, uint8_t e1, uint8_t e2, uint8_t reset); #endif -class U8X8 +class U8X8: public Print { protected: u8x8_t u8x8; @@ -219,7 +220,7 @@ class U8X8 }; -class U8X8LOG +class U8X8LOG: public Print { public: