New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why #include <Arduino.h> explicitly? #1486
Comments
Where exactly did you remove the #include <Arduino.h>? From U8x8lib.h? |
I apologize, I should have provided more information. Here are more details:
#include <Arduino.h> #include <Wire.h> U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); void setup(void) void loop(void)
// #include <Arduino.h> #include <Wire.h>
// #include <Arduino.h> #include <Wire.h>
#include <Arduino.h> #include <Wire.h> I did not touch U8x8lib.h or any other U8g2/u8x8 library file. |
Thanks for the details. |
Indeed it is not at all a serious problem, as the simple workaround - removing the redundant #include <Arduino.h> in the U8g2/u8x8 example sketches - works fine. |
Hello,
I have encountered a compilation error when compiling the various u8x8 example sketches for STM32duino. When I removed the explicit
#include <Arduino.h>
the compilation error disappeared, and the examples ran fine.
Since <Arduino.h> is already automatically included by the Arduino build system, I was wondering why it is included explicitly in the u8g2/u8x8 examples.
Isn't it redundant to include it explicitly? Or does it serve a specific purpose?
The text was updated successfully, but these errors were encountered: