From 5f9e339cf3cff0d3bdf600cc64fc2245a41a8db1 Mon Sep 17 00:00:00 2001 From: Kenneth Bell Date: Mon, 31 May 2021 17:45:49 -0700 Subject: stm32: support pin input interrupts --- src/examples/pininterrupt/stm32.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/examples/pininterrupt/stm32.go (limited to 'src/examples') diff --git a/src/examples/pininterrupt/stm32.go b/src/examples/pininterrupt/stm32.go new file mode 100644 index 000000000..30a86313b --- /dev/null +++ b/src/examples/pininterrupt/stm32.go @@ -0,0 +1,10 @@ +// +build stm32 + +package main + +import "machine" + +const ( + buttonMode = machine.PinInputPulldown + buttonPinChange = machine.PinRising | machine.PinFalling +) -- cgit v1.2.3