-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Minor edits needed for Teensy #154
Comments
Mostly ssd1306 is C-style library and I don't think that |
The #if !defined __has_include || __has_include(<Wire1.h>) The |
As the code Maybe a better test would look something like this? #if defined(__AVR__) && defined(TWBR) && defined(TWCR)
#define CONFIG_AVR_SPI_AVAILABLE
#endif |
If it would help, I can arrange to send you a free Teensy 4.0 and Teensy 4.1 for software testing. |
This library needs minor changes to work with Teensy. But these edits aren't Teensy-specific and probably will help with other modern boards. Problem was reported on this forum thread:
https://forum.pjrc.com/threads/67585-util-delay-h-no-such-file?p=328244&viewfull=1#post328244
Here is a first attempt to fix:
master...PaulStoffregen:ssd1306:master
Quick summary of these changes:
#if defined(__AVR__)
allows non-AVR hardware to work by default.__has_include
check solves this.Confirmed working with Teensy 3.0 and Teensy 4.1 using ssd1306_demo example.
I hope you will consider merging some form of these minor edits, so Teensy boards can work. Other non-AVR boards will very likely also benefit from these edits.
I could send a pull request if you would like. I can also arrange to send you Teensy 4.0 and Teensy 4.1 hardware for future development and testing.
The text was updated successfully, but these errors were encountered: