From 8d87c0c56b0a4b62a5adc45e26e5859ca3877d41 Mon Sep 17 00:00:00 2001 From: Donna Whisnant Date: Tue, 15 Nov 2022 10:16:35 -0600 Subject: [PATCH] Fix ATmega328PB build with AVR MiniCore (such as PlatformIO uses) by including the 'Wire1.h' header for 2nd I2C port. Fixes #1890 --- cppsrc/U8x8lib.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cppsrc/U8x8lib.cpp b/cppsrc/U8x8lib.cpp index ac9e82c13..b26f955b3 100644 --- a/cppsrc/U8x8lib.cpp +++ b/cppsrc/U8x8lib.cpp @@ -50,6 +50,11 @@ # include # else # include +# ifdef U8X8_HAVE_2ND_HW_I2C +# if defined(MINICORE) && defined(__AVR_ATmega328PB__) +# include +# endif +# endif # endif #endif /* U8X8_HAVE_HW_I2C */