Skip to main content

Python library for Seeedstudio Grove devices

Project description

grove.py

Build Status

Python library for Seeedstudio Grove Devices on Raspberry Pi.



Archtecture

To operate grove sensors, the grove.py depends many hardware interface libraries such as mraa/smbus2/rpi.gpi/rpi_ws281x.




Installation

For beginner or library user only, please install with online method.
For developer, please install dependencies and then install grove.py with source code.


Online install

install/update all dependencies and latest grove.py

curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -

Install Dependencies

Install MRAA and UPM for Raspberry Pi

  • Add repository
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
  • Install MRAA & UPM
sudo apt update
# Python2
sudo apt install python-mraa python-upm
# Python3
sudo apt install python3-mraa python3-upm

Install library raspberry-gpio-python

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

Install library rpi_ws281x

sudo pip install rpi_ws281x
sudo pip3 install rpi_ws281x

Install grove.py

From PyPI

  • For Python2
sudo pip install grove.py
  • For Python3
sudo pip3 install grove.py

From source code

git clone https://github.com/Seeed-Studio/grove.py
cd grove.py
# Python2
sudo pip install .
# Python3
sudo pip3 install .



Usage

See the link below for details:

demo and execute

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grove.py-0.6.tar.gz (40.6 kB view details)

Uploaded Source

File details

Details for the file grove.py-0.6.tar.gz.

File metadata

  • Download URL: grove.py-0.6.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for grove.py-0.6.tar.gz
Algorithm Hash digest
SHA256 0bd69ac8d30f2a4bdefa06e10df4dbd87bd018b79a7455643250ef26fb55b4a6
MD5 caba1e2ce6eb5ef4547b56eb629d9a34
BLAKE2b-256 d51c4061c51ccc35471b210e83a76598a1f58198df6c46942917e0f320a9fa81

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page