Mercurial > public > ostc4
diff Discovery/Src/gfx_engine.c @ 1006:75f958ca5d0e GasConsumption
Minor modification activ gas indicator:
On the main screen the active gas is visualized by a number and a box around it.The box as well as the number started at coordinate 0 resultiong of a very close drawing of box and number. To improve this a small gap is added between box and number and the box itself was enlarged. With the OSTC5 a problem with the pixel sync was solfed which caused the first column to not be drawn.
| author | Ideenmodellierer |
|---|---|
| date | Sat, 03 May 2025 17:52:05 +0200 |
| parents | ac25c35a3c97 |
| children | 65d35e66efb9 |
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c Sat May 03 17:47:53 2025 +0200 +++ b/Discovery/Src/gfx_engine.c Sat May 03 17:52:05 2025 +0200 @@ -3483,7 +3483,7 @@ #define Vsync_d1 2 #define VFP_d1 4 // make sure this value * VSYNC is also set in display.c for OLED_VFP_SET -#define VBP_d1 4 // make sure this value * VSYNC is also set in display.c for OLED_VBP_SET +#define VBP_d1 6 // make sure this value * VSYNC is also set in display.c for OLED_VBP_SET /* Horizontal synchronization width = Hsync - 1 */ LtdcHandle.Init.HorizontalSync = Hsync_d1 - 1;
