aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2023-07-03 08:43:00 +0900
committerRon Evans <[email protected]>2023-07-03 11:44:44 +0200
commit6efa94035eda36f121dd6f22bff19daf346d3181 (patch)
tree9b8d91ffc08994518e97c5c0eeda4ce0007d5326
parentdb8d80755f0f37ccba73b507a84918a88f2934a6 (diff)
downloadtinygo-6efa94035eda36f121dd6f22bff19daf346d3181.tar.gz
tinygo-6efa94035eda36f121dd6f22bff19daf346d3181.zip
machine/macropad_rp2040: add machine.BUTTON
-rw-r--r--src/machine/board_macropad-rp2040.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/machine/board_macropad-rp2040.go b/src/machine/board_macropad-rp2040.go
index 8b8f4a7c6..eca20f797 100644
--- a/src/machine/board_macropad-rp2040.go
+++ b/src/machine/board_macropad-rp2040.go
@@ -16,6 +16,7 @@ const (
const (
SWITCH = GPIO0
+ BUTTON = GPIO0
KEY1 = GPIO1
KEY2 = GPIO2