Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1005:85f7e19c6688 | 1006:75f958ca5d0e |
|---|---|
| 3481 #define HFP_d1 8 | 3481 #define HFP_d1 8 |
| 3482 #define HBP_d1 8 | 3482 #define HBP_d1 8 |
| 3483 | 3483 |
| 3484 #define Vsync_d1 2 | 3484 #define Vsync_d1 2 |
| 3485 #define VFP_d1 4 // make sure this value * VSYNC is also set in display.c for OLED_VFP_SET | 3485 #define VFP_d1 4 // make sure this value * VSYNC is also set in display.c for OLED_VFP_SET |
| 3486 #define VBP_d1 4 // make sure this value * VSYNC is also set in display.c for OLED_VBP_SET | 3486 #define VBP_d1 6 // make sure this value * VSYNC is also set in display.c for OLED_VBP_SET |
| 3487 | 3487 |
| 3488 /* Horizontal synchronization width = Hsync - 1 */ | 3488 /* Horizontal synchronization width = Hsync - 1 */ |
| 3489 LtdcHandle.Init.HorizontalSync = Hsync_d1 - 1; | 3489 LtdcHandle.Init.HorizontalSync = Hsync_d1 - 1; |
| 3490 /* Vertical synchronization height = Vsync - 1 */ | 3490 /* Vertical synchronization height = Vsync - 1 */ |
| 3491 LtdcHandle.Init.VerticalSync = Vsync_d1 -1; | 3491 LtdcHandle.Init.VerticalSync = Vsync_d1 -1; |
