-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Arduino/bc66/i2c_oled #2
Comments
Arduino IDE or PlatformIO? somewhere is defined _ _ AVR _ _ and this define HAVE_PORTREG fast workaround: "hack" the Adafruit_SSD1306.h at the begining |
:) level translator |
Thanks! :) |
or try clear display buffer |
and look your display - there is 5 to 3.3 voltage regulator - bypass it |
and if you use I2C/SPI periphery do not init before sim-ready ( Mediatek bug ) without sim - no problem |
Hi Georgi,
While translating (verbose build) I'm getting the following error message.
Could you please help with it? I'm not an experienced developer.
C:\Users\cskocsis.platformio\lib\Adafruit SSD1306_ID135\Adafruit_SSD1306.cpp:482:47: error: 'digitalPinToPort' was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~
C:\Users\cskocsis.platformio\lib\Adafruit SSD1306_ID135\Adafruit_SSD1306.cpp:482:28: error: 'portOutputRegister' was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~~~
C:\Users\cskocsis.platformio\lib\Adafruit SSD1306_ID135\Adafruit_SSD1306.cpp:483:17: error: 'digitalPinToBitMask' was not declared in this scope
dcPinMask = digitalPinToBitMask(dcPin);
^~~~~~~~~~~~~~~~~~~
*** [.pio\build\bc66\libb45\Adafruit SSD1306_ID135\Adafruit_SSD1306.cpp.o] Error 1
The text was updated successfully, but these errors were encountered: