OSError: [Errno 5] EIO
Re: OSError: [Errno 5] EIO
Hey there, I changed resistors from 220 to 4.7k ohms but it the brackets in code output are still empty. And im just curious, what exactly that error (OSError: [Errno 5] EIO) means? Is it about the I2C or may i have another problem?
Re: OSError: [Errno 5] EIO
(OSError: [Errno 5] EIO) is about I2C here. It means that code code cannot communicate with the I2C device. It is the line:
which causes the error. Are you sure that all 4 wires are connected properly?
Code: Select all
self.i2c.writeto_mem(self.address, register, buffer)
Re: OSError: [Errno 5] EIO
Which board do you use?
Edit: If you use a RP2 Pico: GPIO4 (SDA) is at Pin 6 of the board, GPIO5 (SCL) at Pin 7.
Edit: If you use a RP2 Pico: GPIO4 (SDA) is at Pin 6 of the board, GPIO5 (SCL) at Pin 7.
Re: OSError: [Errno 5] EIO
Well, im using raspberry pi pico.