SunFounder pisloth
Then download the code and install pisloth library.
cd /home/pi/
git clone -b v2.0 https://github.com/sunfounder/pisloth.git
cd pisloth
sudo python3 setup.py install
This step will take a little time, so please be patient.
Finally, you need to run the script i2samp.sh to install the components required by the i2s amplifier, otherwise the
pislot will have no sound.
cd /home/pi/pisloth
sudo bash i2samp.sh
74 Chapter 4. Play with Python