-
Notifications
You must be signed in to change notification settings - Fork 374
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
Adafruit OLED/TFT libraries don't compile #58
Comments
Can you undo your library edits and try PR #59 and report back? |
now i'm getting this error:
And I'm not sure if that is because i "installed" the test build wrong... I'm sorry, i'm not that great at using github. |
I assume you're using a |
no i just directly downloaded it from the site. i'll try with git, but i'm running windows so the commands in the README.MD don't really work without modifying them. i'm also assuming just running |
I went and build your examples from the original report and they built fine, so I just did a new release. You can delete whatever copies you were working on and try 0.9.14 (I built, but did not test, since I don't have the exact LCD in question). |
i'm sorry for the inconvenience. i deleted the old board folder, and downloaded the newest release from the board manager and the OLED sketch compiled, but the TFT one didn't.
just to make sure i reinstalled the TFT Library, and even the whole Arduino IDE. but no change. |
That TFT library is busted for 2020, sorry. The -edit- Not intending to be a butthead about this. I'm sure when there's an official Arduino port they'll go through and make it work there. But, even so, the same issues will appear for them to fix. It's just one of the pains of keeping support for dozens of CPU architectures over decades... |
Err..I meant "busted for 2021". It's been a long decade. :) |
dammit, it's a built-in Library as well. i would've expected those to be up-to-date. some better news, the OLED Display is actually working, somewhat fast too. |
Still, good news! You can try overclocking (up to 250 seems to work for everyonr so far) via the menus if it is Pico code that's the bottleneck. Good luck! |
no matter what i set the I2C clock, or the CPU's Clock to a frame basically always takes the same amount of time. does the Wire Library even support different I2C speeds for the RP2040? (datasheet says it can be anything between 0-1MHz. anyways that is not relevant to this issue anymore. i don't want to derail this too far. |
|
yea i tried that, i used both 100kHz and 1MHz, the SSD1306 seems to be able to handle both perfectly fine, but the time it takes to draw a frame is still the same (~10ms). maybe there is something between the Program and the hardware where the frequency gets lost or something. here the code i used in case you want to search for some error: PASTEBIN |
Adafruit_SSD1306 and Adafruit_ST7735 (the included TFT library) to be exact.
hi, I'm trying to experiment around with some displays on the Pico, but i'm just hitting a brickwall. here is the code for both programs: OLED, TFT
using the Adafruit_SSD1306 Library i'm getting this error:
with the other Library it was a bit more complicated.
at first i was getting this error:
after a bit of googling i found some dummy header files in an AVR folder that i was able to just throw into
cores\RP2040
and that seem to have worked. Link to SO threadso the next error i got after that was:
which was caused by this piece of code:
it seems to only include
avr/io.h
if the MCU used is not a 32 bit ARM one... so i just commented the whole thing out and hope it won't cause an issue later on.now the current error i'm getting is pretty much the same as for the OLED Library.
i think i documented everything i did, but in case i missed something i can hopefully provide more detail.
The text was updated successfully, but these errors were encountered: