Skip to content

INPUT-OUTPUT-Definition #4

@Bms7

Description

@Bms7

In MCP23017.cpp line 41 setting of OUTPUT is:
iodir = readRegister(iodirreg);
if(mode == OUTPUT) iodir |= _BV(pin);
else iodir &= ~_BV(pin);

but from datasheet:
3.5.1 I/O DIRECTION REGISTER
Controls the direction of the data I/O.
When a bit is set, the corresponding pin becomes an input.
When a bit is clear, the corresponding pin becomes an output.

So please correct
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions