Skip to content

Commit

Permalink
Update button ID for SwiftIO
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Liu <andy@madmachine.io>
  • Loading branch information
andy0808 committed Oct 24, 2023
1 parent a035ab3 commit bb6a8da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import MadBoard


let uart = UART(Id.UART0)

#if SWIFTIOMICRO
let button = DigitalIn(Id.DL)
#else
let button = DigitalIn(Id.D0)
#endif

var buttonPressed = false

Expand All @@ -27,4 +32,4 @@ while true {
}

sleep(ms: 5)
}
}

0 comments on commit bb6a8da

Please sign in to comment.