Skip to content

Set read bit in MCP23S17 and raise exception in TGpioLinuxPin#7

Open
SpaceEEC wants to merge 2 commits intoSAmeis:masterfrom
SpaceEEC:patch
Open

Set read bit in MCP23S17 and raise exception in TGpioLinuxPin#7
SpaceEEC wants to merge 2 commits intoSAmeis:masterfrom
SpaceEEC:patch

Conversation

@SpaceEEC
Copy link

@SpaceEEC SpaceEEC commented Mar 18, 2019

Two things I stumbled accross:

MCP23S17

The r/w byte was never set, resulting in writing zeros into the register instead of actually reading from it.
See the figure from here.
image

TGpioLinuxPin

When writing to a file via TGpioLinuxPin.WriteToFile failed, the created exception would never actually get raised and the whole operations silently fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant