GithubHelp home page GithubHelp logo

4-20ma / i2cdiscreteioexpander Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 756 KB

Arduino library for the Texas Instruments PCF8575C 16-bit I2C I/O expander

Home Page: http://4-20ma.io/I2cDiscreteIoExpander/

License: Apache License 2.0

Ruby 34.85% C++ 61.92% Makefile 3.22%

i2cdiscreteioexpander's People

Contributors

4-20ma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

i2cdiscreteioexpander's Issues

Update CHANGELOG config

Update Rakefile changelog config.

Remove Type: Feature Request

     config.enhancement_labels = [
-      'Type: Enhancement',
-      'Type: Feature Request'
+      'Type: Enhancement'
     ]

setting up for the first time all logical "0"

Hello Doc,
is it possible to set the output to "0" for the first start?

void setup()
{
device[0].digitalWrite(0xFFFF);
}
void loop()

i solved it now like
void loop()
uint8_t status, i, firstsetup;
static uint16_t j;

if (firstsetup==0){
status = device[i].digitalWrite(0xFFFF);
firstsetup =1;

thanks

Update README

Match style/content of ModbusMaster

  • use .md extension
  • add standard title
  • add badges
  • 2 spaces before ##
  • update sections:
    • Overview
    • Features (add device address: 0x20)
    • Installation (update)
    • Schematic (combine with Hardware)
    • Example
    • Caveats (add)
    • Support (update, remove Questions/Feedback)
  • convert backtick block language to cpp
  • superscript i2c
  • backtick I2cDiscreteIoExpander

Fix Rakefile

task prepare::first_time

  • fix git remote origin

task release::source

  • add DOXYFILE, add to git repo

Automate CHANGELOG

  • remove HISTORY.markdown
  • add .ruby-{gemset, version}
  • add Rakefile comment re: doxygen requirements
  • add github_changelog_generator
  • update Rakefile

Fix release:default task

+++ b/Rakefile
@@ -173,7 +173,7 @@ desc 'Release source & documentation'
 task :release => 'release:default'

 namespace :release do
-  task :default => %(source documentation)
+  task :default => %w(source documentation)

   desc 'Commit documentation changes related to version bump'
   task :documentation do

write and read a single bit without altering the other bits

Hello
I have to use your own library for use 3 PCF8575.
my question is how do I control a pin without affecting the other 15-bit ?

for the address to each 8575 i instantiate 3 devices in sequence
to have the 20, 21, and 22 address ?

example:

I2cDiscreteIoExpander device1;
I2cDiscreteIoExpander Device2;
I2cDiscreteIoExpander device3;

thank you

Mauro

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.