-
Notifications
You must be signed in to change notification settings - Fork 5
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
Example for SPI usage #5
Comments
Hi I don't have any equipment available to test on at the moment, but you should be able to follow the ex_init_c.c example, and for hardware SPI you could try something like
Otherwise, if you are using C++, you could follow ex_init_runtime.cpp, and specify your display and its parameters with strings (see also https://github.com/antiprism/libu8g2arm/blob/main/src/include/U8g2Controller.h) Adrian. |
I got further... but it's still not working. Your expample is missing that there is a third argument of
It will start the SPI but it does 2 things wrongly:
|
Hi
There may well be errors in the library. I tested with a lot of displays and setups but I probably didn't test everything. I also mostly tested with the C++ setup code like in ex_init_runtime.cpp rather than the example setup you are using. Adrian. |
Hi,
I'm unsure how to include a SPI display with your lib - could you provide a small example maybe?
The text was updated successfully, but these errors were encountered: