mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
machine/esp32s3: implement Pin.SetInterrupt for GPIO pin change interrupts
Add support for rising, falling, and toggle edge interrupts on all ESP32-S3 GPIO pins (0-48). The GPIO peripheral interrupt is routed to CPU interrupt 8 via the interrupt matrix. The ISR reads both STATUS and STATUS1 registers to cover the full 49-pin range. Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//go:build xiao_esp32s3
|
||||
|
||||
package main
|
||||
|
||||
import "machine"
|
||||
|
||||
const (
|
||||
button = machine.D1
|
||||
buttonMode = machine.PinInput
|
||||
buttonPinChange = machine.PinFalling
|
||||
)
|
||||
Reference in New Issue
Block a user