SAmeis / pascalio

Input/Output library for Raspberry Pi or any other Linux based microcontroller
Other
30 stars 9 forks source link

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

Open SpaceEEC opened 5 years ago

SpaceEEC commented 5 years ago

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.