Giter VIP home page Giter VIP logo

ht1632c-python's Introduction

HT1632C Python Library

A library used to interface with the RaspberryPi and a set of HT1632c Sure Electronic LED Boards.

Connection

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

Installation

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

Prerequisites

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-core

You are now ready to install the wiringPi library. You may have a look at http://wiringpi.com/ for further information and documentation. Inside the shell execute these commands, to download the source code with git, build and install the library.

git clone git://git.drogon.net/wiringPi
cd wiringPi
git pull origin
./build

Enable SPI on Board

gpio load spi

Install

sudo python setup.py install

Examples

Once you have done the above, try out one of the examples.

ht1632c-python's People

Contributors

mchestr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.