Skip to content

Commit dee2c64

Browse files
CopilotAmperstrand
andcommitted
fix(display): update OTM8009A timing to ST official values
Co-authored-by: Amperstrand <141745238+Amperstrand@users.noreply.github.com>
1 parent 46a23c0 commit dee2c64

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/f469disco-lcd-test.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,16 @@ pub const NT35510_DISPLAY_CONFIG: DisplayConfig = DisplayConfig {
122122
};
123123

124124
// OTM8009A timing (B07 and earlier revisions)
125+
// Values from STMicroelectronics/stm32-otm8009a otm8009a.h
126+
// Tested on KoD KM-040TMP-02-0621 WVGA display
125127
pub const OTM8009A_DISPLAY_CONFIG: DisplayConfig = DisplayConfig {
126128
active_width: WIDTH as _,
127129
active_height: HEIGHT as _,
128-
h_back_porch: 20,
129-
h_front_porch: 20,
130-
v_back_porch: 10,
131-
v_front_porch: 10,
132-
h_sync: 1,
130+
h_back_porch: 34,
131+
h_front_porch: 34,
132+
v_back_porch: 15,
133+
v_front_porch: 16,
134+
h_sync: 2,
133135
v_sync: 1,
134136
frame_rate: 60,
135137
h_sync_pol: true,

0 commit comments

Comments
 (0)