xiao-rp2040-tinygo

Configure and program the XIAO RP2040 with TinyGo using the xiao-rp2040 target.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/therebelrobot/microcontroller-base --skill xiao-rp2040-tinygo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xiao-rp2040-tinygo
Source: https://github.com/therebelrobot/microcontroller-base/tree/main/.roo/skills/XIAO-RP2040-TinyGo
Command: npx skills add https://github.com/therebelrobot/microcontroller-base --skill xiao-rp2040-tinygo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a ready-to-use reference and setup guide so developers can quickly configure TinyGo for the XIAO RP2040, look up pin mappings, and understand board capabilities without hunting through disparate docs.

Core Features & Use Cases

  • Pin mapping and GPIO reference for the XIAO RP2040, including D0-D10 and special function pins.
  • TinyGo target setup, build, and flash workflow examples to speed firmware development on Seeed Studio XIAO RP2040.
  • Use Case: a developer wiring sensors to D4/D5 and blinking an LED using TinyGo, with clear guidance on I2C, SPI, UART, and PWM capabilities.

Quick Start

Start a TinyGo project for the XIAO RP2040 by configuring the xiao-rp2040 target and following the TinyGo build/flash workflow.

Frequently Asked Questions about xiao-rp2040-tinygo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up TinyGo for the XIAO RP2040?

To set up TinyGo for the XIAO RP2040, configure the xiao-rp2040 target in your TinyGo toolchain and follow the provided build and flash workflow to start programming the board.

What is the GPIO pinout for the Seeed Studio XIAO RP2040 in TinyGo?

The GPIO pinout for the XIAO RP2040 maps D0-D10 and special function pins for I2C, SPI, UART, and PWM. This pin mapping reference helps developers wire peripherals correctly without hunting through disparate docs.

Can I use I2C and SPI peripherals with TinyGo on the XIAO RP2040?

Yes, you can use I2C, SPI, UART, and PWM peripherals with TinyGo on the XIAO RP2040. The skill provides comprehensive pinout guidance and configurations for wiring sensors and debugging these peripheral connections.

Do I need the TinyGo toolchain to program the XIAO RP2040?

Yes, the TinyGo toolchain is required to program the XIAO RP2040. You need the toolchain installed along with the board-specific xiao-rp2040 target to compile and flash firmware to the microcontroller.

Why does my TinyGo build fail for the XIAO RP2040 target?

A TinyGo build for the XIAO RP2040 target fails if the toolchain lacks the board-specific target configuration. Ensure you have correctly applied the provided pin mappings and setup steps before building firmware.