Raspberry Pi Fan Hat User Guide
Install libraries
(If only need one LED. Please refer to step 2 directly)
wiringPi
sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
#See gpio version: 2.52, indicating that the installation was successful
Python
sudo apt-get update
sudo apt-get install python-pip
sudo pip3 install RPi.GPIO
One color LED (Do not occupy GPIO but can only select one color)
The jumper cap settings are as follows:
R is connected to GND (other NC) ,The red light is on

G B The same jumper method
RGB LED multi-color light program control (occupy GPIO)
The jumper cap settings are as follows:

Code:
wget http://spotpear.cn/public/uploads/picture/learn/raspberry-pi/rpi-expansion/raspberry-pi-fan-hat/led_rgb.py
sudo python led_rgb.py
The RGB LED will turn on and off
To:
Dear Customers, There may be a lag of several hours before we could process your order, depending on the time difference between your location and ours. Sincerely hoping your understanding!
Email(support)
[email protected]