aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Haig <[email protected]>2024-06-28 15:12:17 +0100
committerDavid Haig <[email protected]>2024-06-28 15:12:17 +0100
commit1123e3fd41e7b23dd0507816f1ff67fc0de6b5d1 (patch)
treedc30b7a6abfe53504fd93a6b5f6aae59d0de0cca /examples
parent47c7bb2bb539712de7534a7f58ac9685e9894645 (diff)
Get dsi_bsp example to compile again
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32h7/src/bin/ltdc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/ltdc.rs b/examples/stm32h7/src/bin/ltdc.rs
index 3bd307012..3b56bbb6c 100644
--- a/examples/stm32h7/src/bin/ltdc.rs
+++ b/examples/stm32h7/src/bin/ltdc.rs
@@ -87,7 +87,7 @@ async fn main(spawner: Spawner) {
87 }; 87 };
88 88
89 info!("init ltdc"); 89 info!("init ltdc");
90 let mut ltdc = Ltdc::new( 90 let mut ltdc = Ltdc::new_with_pins(
91 p.LTDC, Irqs, p.PG7, p.PC6, p.PA4, p.PG14, p.PD0, p.PD6, p.PA8, p.PE12, p.PA3, p.PB8, p.PB9, p.PB1, p.PB0, 91 p.LTDC, Irqs, p.PG7, p.PC6, p.PA4, p.PG14, p.PD0, p.PD6, p.PA8, p.PE12, p.PA3, p.PB8, p.PB9, p.PB1, p.PB0,
92 p.PA6, p.PE11, p.PH15, p.PH4, p.PC7, p.PD3, p.PE0, p.PH3, p.PH8, p.PH9, p.PH10, p.PH11, p.PE1, p.PE15, 92 p.PA6, p.PE11, p.PH15, p.PH4, p.PC7, p.PD3, p.PE0, p.PH3, p.PH8, p.PH9, p.PH10, p.PH11, p.PE1, p.PE15,
93 ); 93 );
@@ -109,7 +109,7 @@ async fn main(spawner: Spawner) {
109 let clut = build_clut(&color_map); 109 let clut = build_clut(&color_map);
110 110
111 // enable the bottom layer with a 256 color lookup table 111 // enable the bottom layer with a 256 color lookup table
112 ltdc.enable_layer(&layer_config, Some(&clut)); 112 ltdc.init_layer(&layer_config, Some(&clut));
113 113
114 // Safety: the DoubleBuffer controls access to the statically allocated frame buffers 114 // Safety: the DoubleBuffer controls access to the statically allocated frame buffers
115 // and it is the only thing that mutates their content 115 // and it is the only thing that mutates their content