From a329f56ec2fb226d36023a9777b99725840a4a70 Mon Sep 17 00:00:00 2001 From: goropikari Date: Sun, 20 Nov 2022 10:20:24 +0900 Subject: [PATCH] Fix xiao rp2040 pin variable assignment According to official infomation(https://wiki.seeedstudio.com/XIAO-RP2040/), D9 and D10 are corresponding to GPIO4 and GPIO3, respectively. --- src/machine/board_xiao-rp2040.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine/board_xiao-rp2040.go b/src/machine/board_xiao-rp2040.go index 11f9a4d9c..e5f911eb8 100644 --- a/src/machine/board_xiao-rp2040.go +++ b/src/machine/board_xiao-rp2040.go @@ -24,8 +24,8 @@ const ( D6 Pin = GPIO0 D7 Pin = GPIO1 D8 Pin = GPIO2 - D9 Pin = GPIO3 - D10 Pin = GPIO4 + D9 Pin = GPIO4 + D10 Pin = GPIO3 ) // Analog pins