Skip to content

Commit

Permalink
fix: Wokwi simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Aug 2, 2024
1 parent d28265f commit 657c438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/button-interrupt.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ version: 1
author: Sergio Gasquez Arcos

steps:
- wait-serial: " GPIO[9]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 "
- wait-serial: "Hello world!"
# Press once
- set-control:
part-id: btn1
control: pressed
value: 1
value: 0
- delay: 100ms
- set-control:
part-id: btn1
control: pressed
value: 0
value: 1
- wait-serial: "Button pressed!"
3 changes: 3 additions & 0 deletions advanced/button-interrupt/examples/solution_led.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ fn main() -> Result<()> {
})?;
}

println!("Hello world!");


// ANCHOR: loop
loop {
// Enable interrupt and wait for new notificaton
Expand Down

0 comments on commit 657c438

Please sign in to comment.