You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Bodmer - I've got a weird ghost in the machine going on with buttons and I'm wondering if you could provide any insight?
With the following code, the mode_btn places itself approx 18 pixels lower on the screen than the other (2), even though the Y numbers are identical - and regardless of the order I initiate these buttons. I actually have to use the code in the second snippet to force the buttons to stay in the same vertical position on screen.
The only thing different about these buttons that i can determine is that the mode button is on the far right of the screen. Could this be some weird scaling bug as you get further out? What's odd though is that the other graphics elements (lines, rectangles etc from TFT_eSPI) don't suffer from this, only the buttons.
Edit 1: If I didn't know better, it "feels" like the mode button is using an alternate reference position. Top left instead of mid point, for example, since its almost 1/2 the button height lower. Come to think of it, I had to adjust the X position more left compared to the same code on other hardware, so they might both be affected - only on this button.
@Bodmer - I've got a weird ghost in the machine going on with buttons and I'm wondering if you could provide any insight?
With the following code, the mode_btn places itself approx 18 pixels lower on the screen than the other (2), even though the Y numbers are identical - and regardless of the order I initiate these buttons. I actually have to use the code in the second snippet to force the buttons to stay in the same vertical position on screen.
The only thing different about these buttons that i can determine is that the mode button is on the far right of the screen. Could this be some weird scaling bug as you get further out? What's odd though is that the other graphics elements (lines, rectangles etc from TFT_eSPI) don't suffer from this, only the buttons.
Edit 1: If I didn't know better, it "feels" like the mode button is using an alternate reference position. Top left instead of mid point, for example, since its almost 1/2 the button height lower. Come to think of it, I had to adjust the X position more left compared to the same code on other hardware, so they might both be affected - only on this button.
Edit 2: - I'm in landscape mode, if you hadn't figured it out :)
320x240 screen: https://www.amazon.com/gp/product/B0BNQBKFCT/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&th=1
Code to force the buttons to line up vertically:
Here are my PlatformIO build flags:
The text was updated successfully, but these errors were encountered: