Update example
This commit is contained in:
parent
1d1fc9afea
commit
67f5b8d974
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,8 @@ async fn main(_spawner: embassy_executor::Spawner) {
|
||||||
g7.set_io2(context.PE3, PinType::Sample);
|
g7.set_io2(context.PE3, PinType::Sample);
|
||||||
g7.set_io3(context.PE4, PinType::Channel);
|
g7.set_io3(context.PE4, PinType::Channel);
|
||||||
|
|
||||||
let mut touch_controller = tsc::Tsc::new(
|
let mut touch_controller = tsc::Tsc::new_async(
|
||||||
context.TSC,
|
context.TSC,
|
||||||
Irqs,
|
|
||||||
Some(g1),
|
Some(g1),
|
||||||
Some(g2),
|
Some(g2),
|
||||||
None,
|
None,
|
||||||
|
@ -62,6 +61,7 @@ async fn main(_spawner: embassy_executor::Spawner) {
|
||||||
Some(g7),
|
Some(g7),
|
||||||
None,
|
None,
|
||||||
config,
|
config,
|
||||||
|
Irqs,
|
||||||
);
|
);
|
||||||
|
|
||||||
touch_controller.discharge_io(true);
|
touch_controller.discharge_io(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue