Hi,
Tried to install the DOT3K on Raspberry Pi 2 and having no joy running the example code:
pi@raspberrypi ~/Pimoroni/dot3k/basic python2 hello_world.py
Traceback (most recent call last):
File "hello_world.py", line 3, in <module>
import dot3k.lcd as lcd
File "/usr/local/lib/python2.7/dist-packages/dot3k/lcd.py", line 3, in <module>
lcd = st7036.st7036(register_select_pin=25)
File "/usr/local/lib/python2.7/dist-packages/st7036.py", line 20, in __init__
self.spi.open(0, spi_chip_select)
IOError: [Errno 2] No such file or directory
pi@raspberrypi ~/Pimoroni/dot3k/basic
Iβve run the installer (curl get.pimoroni.com/dot3k | bash) and enabled SPI I2C etc
Iβve tried the update and upgrade on apt-get
running a i2cdetect -q 1 gives me:
pi@raspberrypi ~/Pimoroni/dot3k/basic $ i2cdetect -q 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1 using quick write commands.
I will probe address range 0x03-0x77.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: β -- β -- β -- β -- β -- β -- β
10: β -- β -- β -- β -- β -- β -- β -- β --
20: β -- β -- β -- β -- β -- β -- β -- β --
30: β -- β -- β -- β -- β -- β -- β -- β --
40: β -- β -- β -- β -- β -- β -- β -- β --
50: β -- β -- 54 β -- β -- β -- β -- β -- β
60: β -- β -- β -- β -- β -- β -- β -- β --
70: β -- β -- β -- β --
Whereas i2cdetect -y 1
pi@raspberrypi ~/Pimoroni/dot3k/basic $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: β -- β -- β -- β -- β -- β -- β
10: β -- β -- β -- β -- β -- β -- β -- β --
20: β -- β -- β -- β -- β -- β -- β -- β --
30: β -- β -- β -- β -- β -- β -- β -- β --
40: β -- β -- β -- β -- β -- β -- β -- β --
50: β -- β -- β -- β -- β -- β -- β -- β --
60: β -- β -- β -- β -- β -- β -- β -- β --
70: β -- β -- β -- β --
Can anyone help as I am starting to think I have a faulty unit?