Fix LCD driver timings
This commit is contained in:
parent
3b88ae8316
commit
512cdc20b8
|
|
@ -3,8 +3,7 @@ use esp_hal::{
|
||||||
DriverMode,
|
DriverMode,
|
||||||
gpio::{Flex, Level, Output},
|
gpio::{Flex, Level, Output},
|
||||||
lcd_cam::lcd::{
|
lcd_cam::lcd::{
|
||||||
ClockMode, Phase, Polarity,
|
ClockMode, DelayMode, Phase, Polarity, dpi::{Dpi, Format, FrameTiming}
|
||||||
dpi::{Dpi, Format, FrameTiming},
|
|
||||||
},
|
},
|
||||||
time::Rate,
|
time::Rate,
|
||||||
};
|
};
|
||||||
|
|
@ -1253,6 +1252,10 @@ where
|
||||||
polarity: Polarity::IdleLow, // From Adafruit
|
polarity: Polarity::IdleLow, // From Adafruit
|
||||||
phase: Phase::ShiftHigh, // From Adafruit
|
phase: Phase::ShiftHigh, // From Adafruit
|
||||||
})
|
})
|
||||||
|
.with_de_mode(DelayMode::RaisingEdge)
|
||||||
|
.with_hsync_mode(DelayMode::RaisingEdge)
|
||||||
|
.with_vsync_mode(DelayMode::RaisingEdge)
|
||||||
|
.with_output_bit_mode(DelayMode::RaisingEdge)
|
||||||
.with_format(Format {
|
.with_format(Format {
|
||||||
enable_2byte_mode: true,
|
enable_2byte_mode: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,8 @@ export component AppWindow inherits Window {
|
||||||
width: 960px;
|
width: 960px;
|
||||||
height: 368px;
|
height: 368px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
// These off-by-one values might be caused by incorrect timings.
|
padding-top: 120px;
|
||||||
padding-top: 121px;
|
padding-bottom: 8px;
|
||||||
padding-bottom: 7px;
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: #2c82ff;
|
background: #2c82ff;
|
||||||
border-color: #ffcf00;
|
border-color: #ffcf00;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue