Skip to content

Commit e645696

Browse files
committed
fix U8x8 not inheriting Print
1 parent 6cc9620 commit e645696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

port/U8x8lib.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <u8x8.h>
4040

4141
#include "u8g2_port.h"
42+
#include "Print.h"
4243

4344
extern "C" uint8_t u8x8_byte_rtthread_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
4445
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_
5758
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);
5859
#endif
5960

60-
class U8X8
61+
class U8X8: public Print
6162
{
6263
protected:
6364
u8x8_t u8x8;
@@ -219,7 +220,7 @@ class U8X8
219220

220221
};
221222

222-
class U8X8LOG
223+
class U8X8LOG: public Print
223224
{
224225

225226
public:

0 commit comments

Comments
 (0)