-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
GPIO9 and 10 is overwritten during Adafruit_SSD1306:display() method #397
Comments
Ok, got it. I think we should make minimal test code for repeating this problem and when we can start working on register implementation part. |
I already localized and fix the problem, 8 bit variable was used in Sming instead of 32 bit for GPIO register. |
Please look my comment to related P-R. I think it isn't right and willn't work for high pin numbers. |
@anakod ESP8266 Arduino project use also 32 bit register, why do you think that it will not work? |
Issue should be moved to SmingRTOS. |
I don't understand why this was fixed in RTOS version and not here, id this is still under development, or not? |
* Updated the Adafruit SSD1306 library. Added better Arduino compatibility. * Re-added SH1106 support. * Fix for wrong GPIO reg type (issue #397) * Started fetching some Arduino libraries via git submodules. Updated Adafruit_ST7735 library to its latest version. Updated Adafruit_SSD1306 library to its latest version. * Re-applied support for SH1106_128_64 - 1.3" OLED display version.
If you will use GPIO9 a 10 as output pins together with Adafruit_SSD1306 library, state of these GPIOS will be overwritten every time that OLED is updated by display() method.
I'm not sure just now with the exact reason now.
But I'm very close. I tried to replace
by
In Adafruit_SSD1306.cpp.
And problem is gone!
It looks that bit mask is incorrect and change more pins!
I checked that uint8_t is used for PortReg and PortMask it is correct for ESP like 32 bit CPU?
Or it is problem in digitalPinToBitMask() or portOutputRegister() ?
The text was updated successfully, but these errors were encountered: