I replaced the display with a pn-535 mini rfid reader. That one too doesn't show up in the scan().
I will try the pullups next.
-----------------------------
A sign of life! Hope looms...
First I tried the pull-ups on the rfid sensor. That didn't work. Then I put the display back in place. Using the start-up code for the rfid-reader I reinitialized i2c and then it showed me the address of the display ([39]).
Then I copied the start-up code to the display's driver unit and it failed again. While I copied both nearly identical pieces of code into this message, I run the rfid-code again and it worked, again. But after that I ran it again and it failed. And again and it worked, etc in an alternating sequence.
In this fashion, I got the digole-unit to work by importing it at the right moment.
The first call to the display returned an error, but after that it obeyed smoothly every command I sent it:
Code: Select all
exec(open('./digole.py').read(),globals())
[39]
>>> i2c.writeto(display, b'CL')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
>>> i2c.writeto(display, b'CL')
2
>>> i2c.writeto(display, b'TTHALLO?!/x00')
13
It turns out the pull-up resistors are essential. When I disconnect them the time-out error returns to disappear as soon as I reconnect them. Don't know yet why the rfid reader didn't respond, but there may be many reasons for that.
-- Wim