Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.11 KB

INSTALL.md

File metadata and controls

58 lines (47 loc) · 1.11 KB

Install Dependencies

  • Add repository
# RPi
echo "deb https://seeed-studio.github.io/pi_repo/ stretch main" | sudo tee /etc/apt/sources.list.d/seeed.list
  • Add public GPG key
curl https://seeed-studio.github.io/pi_repo/public.key | sudo apt-key add -
# or
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BB8F40F3

Enable the I2C interface.

sudo raspi-config
  • Select Interfacing Options > I2C > Yes > Ok > Finish
  • Enable the I2C interface.

In later versions of Python 3, it is recommended to use a virtualenv for isolated package management

sudo apt install python3-virtualenv
virtualenv -p python3 env
source env/bin/activate

Install library raspberry-gpio-python for RPi

sudo apt update
# python3
sudo apt install python3-rpi.gpio

Install library rpi_ws281x for RPi

# python3
sudo pip3 install rpi_ws281x
# env
pip install rpi_ws281x



Install grove.py

From PyPI

Note: This method could not get the lastest code most time.

# python3
sudo pip3 install grove.py
# env
pip install grove.py