BradleyA / pi-display

Displays are Pimoroni Blinkt, Scroll-pHAT, and Scroll-pHAT-HD connected to Raspberry Pi 3 using Triple GPIO Multiplexing Expansion Board
MIT License
3 stars 0 forks source link

scrollphat/display-message.py add test if scrollpHAT available #20

Closed BradleyA closed 6 years ago

BradleyA commented 6 years ago

scrollphat/display-message.py add test if scrollpHAT available

$ ./display-message.py -h Traceback (most recent call last): File "./display-message.py", line 37, in import scrollphat File "/usr/lib/python2.7/dist-packages/scrollphat/init.py", line 20, in controller = IS31FL3730(smbus, font) File "/usr/lib/python2.7/dist-packages/scrollphat/IS31FL3730.py", line 21, in init self.set_mode(self.i2cConstants.MODE_5X11) File "/usr/lib/python2.7/dist-packages/scrollphat/IS31FL3730.py", line 62, in set_mode self.bus.write_i2c_block_data(self.i2cConstants.I2C_ADDR, self.i2cConstants.CMD_SET_MODE, [self.i2cConstants.MODE_5X11]) IOError: [Errno 5] Input/output error