Code: [Local Link Removed for Guests]
sub PCF8574a_read(x)
i2c.reqfrom PCF8574a_address, 1
x = i2c.read
i2c.end
end sub
with the ESP32 the line is not allowed to be included.
if the PCF is connected everything works fine, as soon as the connection is interrupted or you start a program without a PCF connected the ESP will reboot,