-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
GIGA Shield: Display Libraries #92
Comments
Been digging a bit this morning on this and looking at @facchinm giga_display_shield branch (easier to see changes) looks like:
so the wrapper would have to get set up like the camera lib. Guessing here. EDIT:
and would probably have to follow somthing like the sample driver for a Display: |
Right now working on a preliminary wrapper for the display shield. Slow going for me as its a bit different than what I am use to but making progress hopefully by end of day. |
Sounds good, let me know when you have something to play with. |
Not pretty as I don;t really understand how its framebuffer works but have it drawing a rectangle - know its not right yet but at least got some of it working. Still have to add but running out of steam. Here is the sketch Am seeing warnings
|
Been playing a bit more the driver for the display and am getting slightly confused. In ST7701.c file I see the api defined as:
while the display.h has
Think missing from the st7701 driver, but that leads me to something else, why is the display even showing anything when I write to it - not sure where its going. Note not sure how init is getting called in the st7701 driver..... |
@facchinm
If I moded the config for the giga to add CONFIG_ST7701=y you can image what happens:
Looking at the giga overlay further I am not seeing where it is linking back to the display/shield so it knows about the st7701? So guess goes back to @KurtE's original question - how to tell it to build with the display shield??? UPDATE: Just a quick follow after making some changes to the .c I rebuilt anyway and now even if I revert the changes I am seeing that = zephy_display is not defined anymore - yesterday it was - ARGH:::::: UPDATE2: My fault. Just doing a build.sh for the giga doesn't work have to do a
thanks @KurtE for pointing that out. |
Have been playing around with this some more and while I added somethings to the st7701.c driver I am begining to get the feeling that the display config is not using this driver nor display.h: Hints:
showing using display_stm32_ltdc
And what I think should be working doesn't. |
@facchinm @mjs513 - Mike, I played around a little with your first sketch/library you posted two days ago. GIGA_Display_first-250404a.zip And looks like might be working: Tomorrow, may play with converting this to work with the Adafruit_gfx library. @facchinm - I have it setup using your most recent zephyr branch in case it fixed some things |
Thanks @KurtE You made me get up to play around with your sketch and see what I messed up - still can't rotate screen or do blanking since its using the ltdc driver. New function added to your sketch - fill screen with a specified color.
notice do not have to specify setFrameDesc for some reason. |
Been playing with this some more and just added the a getBuffer function to use stm32_ltdc_get_framebuffer to display your checkboard. Still using fillScreen using a stardard buffer approac. And added a fillRect function to just draw a single rectangle after displaying the checkboard. GIGA_Display_first-250406a.zip cheers |
Not sure if best to open new issues for this or add to others:
As mentioned in the WIKI version 0.3.0 release:
Is there example code that demonstrates the usage of the current code?
I see some information up at: https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/shields/arduino_giga_display_shield/doc/index.rst
My quick look at the board data, it appears like maybe it is setup for LVGL?
That index page shows some setup but hoping there is something more Arduino centric.
The text was updated successfully, but these errors were encountered: