项目作者: hawko2600

项目描述 :
PyGlow is a Python library to help drive the LEDs on an Pimoroni PyGlow hat for the Raspberry Pi
高级语言: Python
项目地址: git://github.com/hawko2600/pyglow.git
创建时间: 2018-08-25T13:46:05Z
项目社区:https://github.com/hawko2600/pyglow

开源协议:Apache License 2.0

下载


pyglow

Python module for PiGlow board for RPi

Setup

You’ll need python-smbus and some other stuff. Please see
https://github.com/pimoroni/piglow#setting-up-your-raspberry-pi

Enable i2c drivers

  1. sudo -e /etc/modules

Then ensure you have the following in there:

  1. i2c-dev
  2. i2c-bcm2708

You may also need to check these drivers aren’t blacklisted:

  1. grep bcm2708 /etc/modprobe.d/raspi-blacklist.conf

If spi-bcm2708 or i2c-bcm2708 are there, comment them out.

Next up, install i2c libs and Python support:

  1. sudo apt-get install python-smbus

Finally, reboot your RPi.

  1. sudo shutdown -r now