Skip to content

Commit

Permalink
rp2040: add definition for machine.PinToggle
Browse files Browse the repository at this point in the history
  • Loading branch information
bgould authored and deadprogram committed Jan 29, 2024
1 parent 70f1a54 commit 0ea5cfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/machine/machine_rp2040_gpio.go
Original file line number Diff line number Diff line change
@@ -241,6 +241,8 @@ const (
PinFalling PinChange = 4 << iota
// Edge rising
PinRising

PinToggle = PinFalling | PinRising
)

// Callbacks to be called for pins configured with SetInterrupt.

0 comments on commit 0ea5cfc

Please sign in to comment.