Closed f4exb closed 7 years ago
Well I looked at issue #124 (closed now) and eventually I got i2cdetect showing address 0x48. Then I got papirus-clock working.
I use a RPi2 with the 40 pin connector. I unplugged and re-plugged the Papirus maybe that did the trick.
Have you enabled i2c and SPI?
On 28 Jul 2017 1:02 am, "f4exb" notifications@github.com wrote:
Example:
sudo papirus-clock Traceback (most recent call last): File "/usr/local/bin/papirus-clock", line 111, in main(sys.argv[1:]) File "/usr/local/bin/papirus-clock", line 52, in main papirus = Papirus(rotation = int(argv[0]) if len(sys.argv) > 1 else 0) File "/usr/local/lib/python2.7/dist-packages/papirus/epd.py", line 58, in init self._lm75b = LM75B() File "/usr/local/lib/python2.7/dist-packages/papirus/lm75b.py", line 21, in init self._bus = smbus.SMBus(busnum) IOError: [Errno 2] No such file or directory
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PiSupply/PaPiRus/issues/146, or mute the thread https://github.com/notifications/unsubscribe-auth/ADNCuvaes-0uZMeIGugMvluVIUICgLp3ks5sSSUNgaJpZM4Ol-wO .
anyone
@neuberfran - are you using a PaPiRus?
yes, if I use 0x1b(7bits) works, but I need 0x36 (8bits)
What are you actually trying to do? And you are using a PaPiRus epaper display yes?
Please start a new issue explaining what you are trying to do, what software you are using on your Pi, what version of the PaPiRus you have and what issues you are facing.
@neuberfran 8 bits addressing does not really exist in I2C. The most significant 7 bits are the address and the least significant bit indicates write(0) or read(1). So your 8-bits 0x36 is in fact a write to 7 bits address 0x1b. Moreover the PaPiRus has nothing on address 0x1b. It uses SPI to drive the display. The HAT RTC uses (7-bits) I2c address 0x6f. So you must have something else on address 0x1b. Hence not a PaPiRus issue at all
Example:
sudo papirus-write "Hello, World!" Traceback (most recent call last): File "/usr/local/bin/papirus-write", line 45, in
main()
File "/usr/local/bin/papirus-write", line 39, in main
text = PapirusTextPos(rotation=args.rotation)
File "/usr/local/lib/python2.7/dist-packages/papirus/textpos.py", line 25, in init
self.papirus = Papirus(rotation = rotation)
File "/usr/local/lib/python2.7/dist-packages/papirus/epd.py", line 58, in init
self._lm75b = LM75B()
File "/usr/local/lib/python2.7/dist-packages/papirus/lm75b.py", line 22, in init
self._bus.write_byte_data(self._address, LM75B_CONF_REGISTER, LM75B_CONF_NORMAL)
IOError: [Errno 121] Remote I/O error