Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PCF8575 by Mischianti Renzo #11357

Closed
Closed
Labels
Library: OtherArduino libraries that don't have their own label Type: Bug Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug
@gerryr1gerryr1

Description

First post. Hope this is the right place.

Using Arduino Mega 2560 had problems getting this Library to work.

Using the PCF8575 Module ( which has no output pins 8 or 9),the outputs were

OK on Pins 0 to 7 but the pins 10 to 17 were out by two places.

eg. sketch code p8 activated Pin 10. Sketch code p9 activated Pin 11 etc etc.

With the help of the Arduinp forum the problem appears to be in the .h file.

Changed the #define lines in the .h file to;

#define P00 0
#define P01 1
#define P02 2
#define P03 3
#define P04 4
#define P05 5
#define P06 6
#define P07 7
#define P10 8
#define P11 9
#define P12 10
#define P13 11
#define P14 12
#define P15 13
#define P16 14
#define P17 15
#include <math.h>

Changing the code to the above fixed the problem.

Thanks to Arduino Forum's PaulRB for the fix (https://forum.arduino.cc/index.php?topic=732201)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Library: OtherArduino libraries that don't have their own label Type: Bug Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /