XIAO MG24 with PlatformIO

PlatformIO Introduce
PlatformIO is a development platform that integrates many types of development boards and has good scalability. If the platform does not have the type you need, you can manually add the type of development board yourself. The code you write on Arduino can use it, just add the corresponding library
In this wiki , we wiil introduce how to install and run the sample code in PlatformIO
Use PlatformIO For XIAO MG24
Setup 1 . Install PlatformIO in official website
if you have not install software of PlatformIO , you can click on the link above.
Setup 2 . Create any project in PlatformIO
Because the platform already has our XIAO ESP32C6 development board options, we can choose one of them to create our files. Of course, other files are also fine, it doesn't matter. The project name can also be chosen arbitrarily.
Operation one | Operation two |
---|---|
![]() | ![]() |
Setup 3 . Modify platformio.ini file
When you successfully create the PlatformIO file, there will be many files appearing in the left column. We can see a file named platform.ini. Next, we need to replace the contents inside it
Operation three |
---|
You need to copy the following code and replace the content in platform.ini file
[env:seeed_xiao_mg24]
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = seeed-xiao-mg24
framework = arduino
Remember save the file , ctrl+s , it will loading
Setup 4 . Compile and Burn
Next we compile and burn using this code
#include <Arduino.h>
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Operation four |
---|
It says that it has been compiled successfully, and then we can access the XIAO MG24 to burn it in.
Setup 5 . Result

Tech Support & Product Discussion
Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.