Github Code Errors

I’m trying to clone the Github codes, but I’m getting the following errors:

  1. git clone GitHub - sunfounder/robot-hat: Robot Hat python library - This installed with no errors. I had to manually download, extract and sudo.

  2. git clone -b v2.0 GitHub - sunfounder/pisloth: PiSloth from SunFounder > sudo python3 setup.py install - I had to manually download, but there is no setup.py in this folder.

  3. sudo bash i2samp.sh - No such file or directory.

  4. cd /home/pi/piarm/examples > sudo python3 servo_zeroing.py - No such file or directory.

So, I can’t install the library and I can’t zero the servos. Help!

It is recommended that you reinstall the Raspberry Pi system and then go ahead and follow the instructions below to install the source code: install robot-hat library: cd ~/git clone https://github.com/sunfounder/robot-hat.gitcd ~/robot-hatsudo python3 setup.py install install pisloth library: cd ~/git clone -b v2.0 https://github.com/sunfounder/pisloth.gitcd ~/pislothsudo python3 setup.py install install i2samp.sh: cd ~/ pislothsudo bash i2samp.sh