Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Wokwi simulation
Browse files Browse the repository at this point in the history
SergioGasquez committed Aug 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d28265f commit 657c438
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
@@ -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
@@ -35,6 +35,9 @@ fn main() -> Result<()> {
})?;
}

println!("Hello world!");


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

0 comments on commit 657c438

Please sign in to comment.