From 1479fbbee76b52e04bf658244fc535e462e17637 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Sat, 22 Nov 2025 00:37:19 +0100 Subject: Restructure build script and pin traits a little bit --- examples/stm32u0/src/bin/lcd.rs | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'examples') diff --git a/examples/stm32u0/src/bin/lcd.rs b/examples/stm32u0/src/bin/lcd.rs index f401b1dcd..39db5c9c8 100644 --- a/examples/stm32u0/src/bin/lcd.rs +++ b/examples/stm32u0/src/bin/lcd.rs @@ -43,34 +43,34 @@ async fn main(_spawner: Spawner) { config, p.PC3, [ - LcdPin::from(p.PA8), - LcdPin::from(p.PA9), - LcdPin::from(p.PA10), - LcdPin::from(p.PB1), - LcdPin::from(p.PB9), - LcdPin::from(p.PB11), - LcdPin::from(p.PB14), - LcdPin::from(p.PB15), - LcdPin::from(p.PC4), - LcdPin::from(p.PC5), - LcdPin::from(p.PC6), - LcdPin::from(p.PC8), - LcdPin::from(p.PC9), - LcdPin::from(p.PC10), - LcdPin::from(p.PC11), - LcdPin::from(p.PD8), - LcdPin::from(p.PD9), - LcdPin::from(p.PD12), - LcdPin::from(p.PD13), - LcdPin::from(p.PD0), - LcdPin::from(p.PD1), - LcdPin::from(p.PD3), - LcdPin::from(p.PD4), - LcdPin::from(p.PD5), - LcdPin::from(p.PD6), - LcdPin::from(p.PE7), - LcdPin::from(p.PE8), - LcdPin::from(p.PE9), + LcdPin::new_com(p.PA8), + LcdPin::new_com(p.PA9), + LcdPin::new_com(p.PA10), + LcdPin::new_seg(p.PB1), + LcdPin::new_com(p.PB9), + LcdPin::new_seg(p.PB11), + LcdPin::new_seg(p.PB14), + LcdPin::new_seg(p.PB15), + LcdPin::new_seg(p.PC4), + LcdPin::new_seg(p.PC5), + LcdPin::new_seg(p.PC6), + LcdPin::new_seg(p.PC8), + LcdPin::new_seg(p.PC9), + LcdPin::new_seg(p.PC10), + LcdPin::new_seg(p.PC11), + LcdPin::new_seg(p.PD8), + LcdPin::new_seg(p.PD9), + LcdPin::new_seg(p.PD12), + LcdPin::new_seg(p.PD13), + LcdPin::new_seg(p.PD0), + LcdPin::new_seg(p.PD1), + LcdPin::new_seg(p.PD3), + LcdPin::new_seg(p.PD4), + LcdPin::new_seg(p.PD5), + LcdPin::new_seg(p.PD6), + LcdPin::new_seg(p.PE7), + LcdPin::new_seg(p.PE8), + LcdPin::new_seg(p.PE9), ], ); -- cgit