7/23/22, 9:39 PM
Seeeduino XIAO Expansion board - Seeed Wiki
https://wiki.seeedstudio.com/Seeeduino-XIAO-Expansion-Board/
37/66
Arduino Instructions
Step 1
. Follow the connection picture connect all the sensor on the
board.
[https://www.arduino.cc/en/Main/software]
Studio/Seeed_Arduino_IRSendRev]
[https://github.com/Seeed-Studio/Drv8830_Motor_Driver]
library,
[https://wiki.seeedstudio.com/How_to_install_Arduino_Library/]
.
Step 4
. Copy the code stick on the Aruino IDE then upload it.
Code
1
#
include
<Arduino.h>
2
#
include
<U8g2lib.h>
3
#
include
<IRremote.h>
4
#
include
<SparkFunMiniMoto.h> // Include the MiniMoto li
5
// Create two MiniMoto instances, with different address
6
MiniMoto
motor0
(
0xC4
);
// A1 = 1, A0 = clear
7
MiniMoto
motor1
(
0xC0
);
// A1 = 1, A0 = 1 (default)