Skip to content

Commit 97e0eae

Browse files
committed
Turn on color lookup table for layer 2
1 parent 58ecffa commit 97e0eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lcd/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn init<'a>(ltdc: &'a mut LTDC, rcc: &mut RCC) -> Lcd<'a> {
178178

179179
// enable layers
180180
ltdc.l1cr.modify(|_, w| w.len().set_bit());
181-
ltdc.l2cr.modify(|_, w| w.len().set_bit());
181+
ltdc.l2cr.modify(|_, w| w.len().set_bit().cluten().set_bit());
182182

183183
// reload shadow registers
184184
ltdc.srcr.modify(|_, w| w.imr().set_bit()); // IMMEDIATE_RELOAD

0 commit comments

Comments
 (0)