A library used to interface with the RaspberryPi and a set of HT1632c Sure Electronic LED Boards.
Using a Raspberry PI model B2, you need to connect some GPIO pins to the LED BR1 port, the input port, like this:
RPI Label | Pin | SURE Label | Pin |
---|---|---|---|
GND | 6 | GND | 8 |
5V | 4 | 5V | 16 |
GPIO 10 (MOSI) | 19 | DATA | 7 |
GPIO 11 (SCLK) | 23 | WR | 5 |
GPIO 8 (CE0) | 24 | CLK | 2 |
GPIO 7 (CE1) | 26 | CS | 1 |
On your Raspberry PI open a shell, or connect to it by ssh. First you need to install the python development package and the wiringPi library
Execute the following commands to have an updated package database, and to install python-dev and git-core:
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install git
sudo apt-get install -y python-setuptools
You are now ready to install the wiringPi library. You may have a look at http://wiringpi.com/ for further information and documentation. WiringPi is PRE-INSTALLED with standard Raspbian systems.
To update or install on a Raspbian-Lite system:
sudo apt-get install wiringpi
This is done through raspi-config. Go
sudo raspi-config
Select Option 5 Interfacing Options Select Option P4 SPI Select Yes to enable SPI
git clone git://github.com/dkaulukukui/HT1632C-Python.git
cd HT1632C-Python
sudo python setup.py install
Once you have done the above, try out one of the examples.