mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
Update example
This commit is contained in:
parent
1d1fc9afea
commit
67f5b8d974
@ -50,9 +50,8 @@ async fn main(_spawner: embassy_executor::Spawner) {
|
||||
g7.set_io2(context.PE3, PinType::Sample);
|
||||
g7.set_io3(context.PE4, PinType::Channel);
|
||||
|
||||
let mut touch_controller = tsc::Tsc::new(
|
||||
let mut touch_controller = tsc::Tsc::new_async(
|
||||
context.TSC,
|
||||
Irqs,
|
||||
Some(g1),
|
||||
Some(g2),
|
||||
None,
|
||||
@ -62,6 +61,7 @@ async fn main(_spawner: embassy_executor::Spawner) {
|
||||
Some(g7),
|
||||
None,
|
||||
config,
|
||||
Irqs,
|
||||
);
|
||||
|
||||
touch_controller.discharge_io(true);
|
||||
|
Loading…
Reference in New Issue
Block a user