From 8491c6d6e3798269cf550e14f270a0c0eca285c2 Mon Sep 17 00:00:00 2001 From: JasonWenTin Date: Tue, 12 Nov 2024 21:48:08 +0800 Subject: [PATCH] modify --- .../XIAO_MG24_Pin_Multiplexing.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/Sensor/SeeedStudio_XIAO/SeeedStudio_XIAO_MG24/XIAO_MG24_Pin_Multiplexing.md b/docs/Sensor/SeeedStudio_XIAO/SeeedStudio_XIAO_MG24/XIAO_MG24_Pin_Multiplexing.md index 0943c6cbaa93..e72e51206d8f 100644 --- a/docs/Sensor/SeeedStudio_XIAO/SeeedStudio_XIAO_MG24/XIAO_MG24_Pin_Multiplexing.md +++ b/docs/Sensor/SeeedStudio_XIAO/SeeedStudio_XIAO_MG24/XIAO_MG24_Pin_Multiplexing.md @@ -18,8 +18,6 @@ sidebar_position: 1 ## Digital -The XIAO MG24(Sense) has up to 22 regular pins , 18 analog pins , 18 Digital, 2xSPI , 2xUART , 2xIIC and ALL PWM.It have a rich variety of pins available for us to use. So in this example, we will use the XIAO MG24 - ### Hardware Preparation @@ -52,7 +50,7 @@ The XIAO MG24(Sense) has up to 22 regular pins , 18 analog pins , 18 Digital, 2x
-Please install XIAO MG24(Sense) or Sense onto the expansion board, and connect the relay to the **A0/D0** interface of the expansion board via a Grove cable. Finally, connect XIAO to the computer via a USB-C cable. +Please install XIAO MG24(Sense) onto the expansion board, and connect the relay to the **A0/D0** interface of the expansion board via a Grove cable. Finally, connect XIAO to the computer via a USB-C cable. ### Software Implementation @@ -128,7 +126,7 @@ All GPIO pins on XIAO MG24(Sense) support PWM output. Therefore, you can use any :::tip -Please install XIAO MG24(Sense) or Sense onto the expansion board, then connect the Variable Color LED to the A0/D0 interface of the expansion board using a Grove cable. Finally, connect XIAO to your computer via USB-C cable. +Please install XIAO MG24(Sense) onto the expansion board, then connect the Variable Color LED to the A0/D0 interface of the expansion board using a Grove cable. Finally, connect XIAO to your computer via USB-C cable. ::: ### Software Implementation @@ -243,12 +241,12 @@ If everything goes smoothly, after uploading the program, you should see the fol
-## Serial +## UART When working with Arduino IDE, Serial communication is an essential part of many projects. To use Serial in Arduino IDE, you need to start by opening the Serial Monitor window. This can be done by clicking on the **Serial Monitor** icon in the toolbar or by pressing the **Ctrl+Shift+M** shortcut key. -### General Usage +### General Serial Usage Some of the commonly used Serial functions include: @@ -311,7 +309,7 @@ void loop() { } ``` -## IIC +## I2C XIAO MG24(Sense) has an I2C interface that can be used for data transmission and parsing of many sensors, as well as for using some OLED screens. @@ -424,9 +422,6 @@ The XIAO MG24(Sense) chip integrates multiple peripherals, including an SPI inte ### Arduino Library Overview -:::tip -If this is your first time using Arduino, we highly recommend you to refer to [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/). -:::
Download the Library @@ -464,10 +459,12 @@ Based on the Arduino example program provided by **Waveshare**, we have written
### Pin Connect -
After preparing the hardware as mentioned above, use jumper wires to connect the SPI interface of the XIAO and OLED. Please refer to the following diagram for the wiring method. +
+ + ### Installation