One-wire data validation fails due to incorrect NOT operator used. Need to be bitwise.
One-wire communication errors are not detected due to invalid logical tests, < and >, on unsigned uint8_t data types.
Due to both bugs being present, the DS2413 works when only one of its two PIOs are used. When both PIOs are used, the output states are erratic and cannot be controlled individually.
Bug fixes:
Due to both bugs being present, the DS2413 works when only one of its two PIOs are used. When both PIOs are used, the output states are erratic and cannot be controlled individually.