mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 20:05:52 +00:00
Trunk fix
This commit is contained in:
parent
87ae2987d8
commit
8aabbd4c56
@ -468,26 +468,26 @@ class LGFX : public lgfx::LGFX_Device
|
|||||||
// The following setting values are general initial values for each panel, so please comment out any
|
// The following setting values are general initial values for each panel, so please comment out any
|
||||||
// unknown items and try them.
|
// unknown items and try them.
|
||||||
#if defined(T_WATCH_S3)
|
#if defined(T_WATCH_S3)
|
||||||
cfg.panel_width = 240;
|
cfg.panel_width = 240;
|
||||||
cfg.panel_height = 240;
|
cfg.panel_height = 240;
|
||||||
cfg.memory_width = 240;
|
cfg.memory_width = 240;
|
||||||
cfg.memory_height = 320;
|
cfg.memory_height = 320;
|
||||||
cfg.offset_x = 0;
|
cfg.offset_x = 0;
|
||||||
cfg.offset_y = 0; // No vertical shift needed — panel is top-aligned
|
cfg.offset_y = 0; // No vertical shift needed — panel is top-aligned
|
||||||
cfg.offset_rotation = 2; // Rotate 180° to correct upside-down layout
|
cfg.offset_rotation = 2; // Rotate 180° to correct upside-down layout
|
||||||
#else
|
#else
|
||||||
cfg.memory_width = TFT_WIDTH; // Maximum width supported by the driver IC
|
cfg.memory_width = TFT_WIDTH; // Maximum width supported by the driver IC
|
||||||
cfg.memory_height = TFT_HEIGHT; // Maximum height supported by the driver IC
|
cfg.memory_height = TFT_HEIGHT; // Maximum height supported by the driver IC
|
||||||
cfg.panel_width = TFT_WIDTH; // actual displayable width
|
cfg.panel_width = TFT_WIDTH; // actual displayable width
|
||||||
cfg.panel_height = TFT_HEIGHT; // actual displayable height
|
cfg.panel_height = TFT_HEIGHT; // actual displayable height
|
||||||
cfg.offset_x = TFT_OFFSET_X; // Panel offset amount in X direction
|
cfg.offset_x = TFT_OFFSET_X; // Panel offset amount in X direction
|
||||||
cfg.offset_y = TFT_OFFSET_Y; // Panel offset amount in Y direction
|
cfg.offset_y = TFT_OFFSET_Y; // Panel offset amount in Y direction
|
||||||
cfg.offset_rotation = TFT_OFFSET_ROTATION; // Rotation direction value offset 0~7 (4~7 is mirrored)
|
cfg.offset_rotation = TFT_OFFSET_ROTATION; // Rotation direction value offset 0~7 (4~7 is mirrored)
|
||||||
#endif
|
#endif
|
||||||
#ifdef TFT_DUMMY_READ_PIXELS
|
#ifdef TFT_DUMMY_READ_PIXELS
|
||||||
cfg.dummy_read_pixel = TFT_DUMMY_READ_PIXELS; // Number of bits for dummy read before pixel readout
|
cfg.dummy_read_pixel = TFT_DUMMY_READ_PIXELS; // Number of bits for dummy read before pixel readout
|
||||||
#else
|
#else
|
||||||
cfg.dummy_read_pixel = 9; // Number of bits for dummy read before pixel readout
|
cfg.dummy_read_pixel = 9; // Number of bits for dummy read before pixel readout
|
||||||
#endif
|
#endif
|
||||||
cfg.dummy_read_bits = 1; // Number of bits for dummy read before non-pixel data read
|
cfg.dummy_read_bits = 1; // Number of bits for dummy read before non-pixel data read
|
||||||
cfg.readable = true; // Set to true if data can be read
|
cfg.readable = true; // Set to true if data can be read
|
||||||
|
Loading…
Reference in New Issue
Block a user