ForTest Posted February 15, 2021 Report Posted February 15, 2021 (edited) Hi, is it possible to add an Y offset to the screen? I'm using SSD1963 Thanks Edited February 15, 2021 by ForTest
ForTest Posted February 19, 2021 Author Report Posted February 19, 2021 I try to explain better. I want the display to add for example 10 px as offset to the Y axis, so if I tell it to plot at x:0 y:0 it actually plots it at x:0 y:10 The easiest thing to do is to modify all the gdisp routines and add this offset to the y component. I was wondering if anyone knew of a way to set the video controller at init already with this offset.
Joel Bodenmann Posted February 22, 2021 Report Posted February 22, 2021 Can you elaborate a bit on what you want to achieve? It this offset desired to be global to everything the display displays or just for certain widgets? Also, is this a permanent measure or should this offset change during runtime? If this is just a measure to align the UI of a machine with a display behind a panel I would recommend modifying the GDISP driver directly. This way your application remains unchanged and upgrading to future versions of µGFX will not require any changes.
ForTest Posted February 22, 2021 Author Report Posted February 22, 2021 It's a permanent offset. It should works for all widgets and in general for everything plotted on the display.
Joel Bodenmann Posted February 26, 2021 Report Posted February 26, 2021 In that case I'd recommend to adjust whatever GDISP driver you have to handle that adjustment for you. How to do this depends on the GDISP driver model used but the overall idea remains the same: shift each pixel before the display controller gets access to it.
Joel Bodenmann Posted March 16, 2021 Report Posted March 16, 2021 Did you manage to get this working?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now