diff options
| author | Eekle <[email protected]> | 2024-06-30 11:06:32 +0200 |
|---|---|---|
| committer | Eekle <[email protected]> | 2024-06-30 11:06:32 +0200 |
| commit | 67f5b8d974c23854676cff3a6797cf4aaf41a402 (patch) | |
| tree | 6e9f175875dcaaa6f7627060793383a42fa6794b /examples/stm32u5 | |
| parent | 1d1fc9afeac268a4b6d2cd9b9e5788226c79eca8 (diff) | |
Update example
Diffstat (limited to 'examples/stm32u5')
| -rw-r--r-- | examples/stm32u5/src/bin/tsc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32u5/src/bin/tsc.rs b/examples/stm32u5/src/bin/tsc.rs index db85fb158..eb15d275a 100644 --- a/examples/stm32u5/src/bin/tsc.rs +++ b/examples/stm32u5/src/bin/tsc.rs | |||
| @@ -50,9 +50,8 @@ async fn main(_spawner: embassy_executor::Spawner) { | |||
| 50 | g7.set_io2(context.PE3, PinType::Sample); | 50 | g7.set_io2(context.PE3, PinType::Sample); |
| 51 | g7.set_io3(context.PE4, PinType::Channel); | 51 | g7.set_io3(context.PE4, PinType::Channel); |
| 52 | 52 | ||
| 53 | let mut touch_controller = tsc::Tsc::new( | 53 | let mut touch_controller = tsc::Tsc::new_async( |
| 54 | context.TSC, | 54 | context.TSC, |
| 55 | Irqs, | ||
| 56 | Some(g1), | 55 | Some(g1), |
| 57 | Some(g2), | 56 | Some(g2), |
| 58 | None, | 57 | None, |
| @@ -62,6 +61,7 @@ async fn main(_spawner: embassy_executor::Spawner) { | |||
| 62 | Some(g7), | 61 | Some(g7), |
| 63 | None, | 62 | None, |
| 64 | config, | 63 | config, |
| 64 | Irqs, | ||
| 65 | ); | 65 | ); |
| 66 | 66 | ||
| 67 | touch_controller.discharge_io(true); | 67 | touch_controller.discharge_io(true); |
