Giter Club home page Giter Club logo

pca9554-python's Introduction

Pca9554 driver

Python driver for PCA9554 for RPi and other devices

Basic usage

Initialize by providing devices I2C address

i2c_address = 0x20
pca_driver = pca9554.Pca9554(i2c_address)

Set output/input mode of ports (8 ports total are available)

pca_driver.write_config_port(0, pca9554.INPUT)
pca_driver.write_config_port(3, pca9554.OUTPUT)

Read values from ports

value_0 = pca_driver.read_port(0)
value_1 = pca_driver.read_port(1)

For other functionality see pca9554.py

License

Firmware and software originating from this repository is licensed under the GNU General Public License v2.0.

Open-source licensing means the hardware, firmware, software and documentation may be used without paying a royalty, and knowing one will be able to use their version forever. One is also free to make changes, but if one shares these changes, they have to do so under the same conditions they are using themselves. The name IRNAS is a mark of IRNAS LTD. This name and term may only be used to attribute the appropriate entity as required by the Open Licence referred to above. The names and marks may not be used in any other way, and in particular may not be used to imply endorsement or authorization of any hardware one is designing, making or selling.

pca9554-python's People

Contributors

tjazvracko avatar

Stargazers

Benjamin Zeiss avatar

Watchers

Jernej Kos avatar James Cloos avatar Benjamin Zeiss avatar Luka Mustafa avatar Anja avatar Jakub avatar Vojislav Milivojevic avatar  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.