rm-hull / luma.oled

Python module to drive a SSD1306 / SSD1309 / SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SH1106 OLED
https://luma-oled.readthedocs.io
MIT License
812 stars 162 forks source link

MakerHawk 1.5" OLED 128 x 128 SSD1327 #266

Closed avvy65 closed 4 years ago

avvy65 commented 4 years ago

I sent a ticket to the main Github group, but they didn't build the luma project, so I need to send it to the luma group. Thanks

thijstriemstra commented 4 years ago

main Github group

where is that??

what is the issue, luma.oled related?

avvy65 commented 4 years ago

I have a MakerHawk 1.5" OLED 128 x 128 display and it uses the SSD1327 driver, which I cannot install from AdaFruit as it is not on the Pypi site. Anyway, I edited the luma.examples/examples/clock.py script: from luma.oled.device import ssd1327

When I then run the script, it returns; pi@raspberrypi:~/Downloads/luma.examples/examples $ python3 clock.py Version: luma.oled 3.3.0 (luma.core 1.12.0) Display: ssd1306 Interface: i2c Dimensions: 128 x 64

and nothing is displayed

avvy65 commented 4 years ago

Hi, yes it is luma related and I was told by rm-hull to submit a ticket earlier today

Regards Rob

On Thu, 19 Dec 2019 at 13:52, Thijs Triemstra notifications@github.com wrote:

main Github group

where is that??

what is the issue, luma.oled related?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJ6HG7BVMUWBHQGBAHTQZN4DXA5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHJVNDA#issuecomment-567498380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJ7RZ4LHKXIIRFZIJPDQZN4DXANCNFSM4J5C5NUA .

thijstriemstra commented 4 years ago

Please follow the instructions: https://github.com/rm-hull/luma.examples#installation-instructions

and run: python clock.py -f conf/ssd1327.conf

avvy65 commented 4 years ago

I have already tried that and this is the output: pi@raspberrypi:~/Downloads/luma.examples/examples $ python clock.py -f conf/ssd1327.conf Traceback (most recent call last): File "clock.py", line 70, in device = get_device() File "/home/pi/Downloads/luma.examples/examples/demo_opts.py", line 56, in get_device config = cmdline.load_config(args.config) File "/usr/local/lib/python2.7/dist-packages/luma.core-1.12.0-py2.7.egg/luma/core/cmdline.py", line 116, in load_config with open(path, 'r') as fp: IOError: [Errno 2] No such file or directory: 'conf/ssd1327.conf'

On Thu, 19 Dec 2019 at 15:21, Thijs Triemstra notifications@github.com wrote:

Please follow the instructions: https://github.com/rm-hull/luma.examples#installation-instructions

and run: python clock.py -f conf/ssd1327.conf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJ2AZEZXY6EQLYJMJYTQZOGOBA5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHJ55LA#issuecomment-567533228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJ6NUIQPGEO63N23LV3QZOGOBANCNFSM4J5C5NUA .

thijstriemstra commented 4 years ago

oh then:

cd ~/Downloads/luma.examples/
python clock.py -f conf/ssd1327.conf
avvy65 commented 4 years ago

pi@raspberrypi:~/Downloads/luma.examples $ python clock.py -f conf/ssd1327.conf python: can't open file 'clock.py': [Errno 2] No such file or directory

I do have a conf folder here: /Downloads/luma.examples/conf $ and the SSD1327.conf file is there

On Thu, 19 Dec 2019 at 15:27, Thijs Triemstra notifications@github.com wrote:

oh then:

cd ~/Downloads/luma.examples/ python clock.py -f conf/ssd1327.conf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJYV2W4NSB66XTJBPY3QZOHG5A5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHJ6VGY#issuecomment-567536283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJYS2ZKCE2KA3JBOPGLQZOHG5ANCNFSM4J5C5NUA .

avvy65 commented 4 years ago

I just checked / tried the final part of installation : finally install the luma libraries pi@raspberrypi:~/Downloads/luma.examples $ sudo -H pip install -e

Usage: pip install [options] [package-index-options] ... pip install [options] -r [package-index-options] ... pip install [options] [-e] ... pip install [options] [-e] ... pip install [options] <archive url/path> ...

-e option requires an argument

On Thu, 19 Dec 2019 at 15:31, Robert Heselwood robghes@gmail.com wrote:

pi@raspberrypi:~/Downloads/luma.examples $ python clock.py -f conf/ssd1327.conf python: can't open file 'clock.py': [Errno 2] No such file or directory

I do have a conf folder here: /Downloads/luma.examples/conf $ and the SSD1327.conf file is there

On Thu, 19 Dec 2019 at 15:27, Thijs Triemstra notifications@github.com wrote:

oh then:

cd ~/Downloads/luma.examples/ python clock.py -f conf/ssd1327.conf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJYV2W4NSB66XTJBPY3QZOHG5A5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHJ6VGY#issuecomment-567536283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJYS2ZKCE2KA3JBOPGLQZOHG5ANCNFSM4J5C5NUA .

thijstriemstra commented 4 years ago

first:

cd ~/Downloads/luma.examples/
sudo -H pip install -e .

then:

python ~/Downloads/luma.examples/examples/clock.py -f ~/Downloads/luma.examples/conf/ssd1327.conf
avvy65 commented 4 years ago

Ok, now that made a difference.: pi@raspberrypi:~/Downloads/luma.examples $ python ~/Downloads/luma.examples/examples/clock.py -f ~/Downloads/luma.examples/conf/ssd1327.conf Version: luma.oled 3.3.0 (luma.core 1.12.0) Display: ssd1327 Interface: i2c Dimensions: 128 x 128

but then clock.py: error: I2C device not found on address: 0x3C

i2cdetect - 1 returns no address at all for the display, so I guess it is faulty

On Thu, 19 Dec 2019 at 16:29, Thijs Triemstra notifications@github.com wrote:

first:

cd ~/Downloads/luma.examples/ sudo -H pip install -e .

then:

python ~/Downloads/luma.examples/clock.py -f ~/Downloads/luma.examples/conf/ssd1327.conf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJZHOQ5CIOIUJ57TZS3QZOOP5A5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKFBDQ#issuecomment-567562382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJ3GEXV64GIMQ2E4WTLQZOOP5ANCNFSM4J5C5NUA .

thijstriemstra commented 4 years ago

i2cdetect - 1 returns no address at all for the display, so I guess it is faulty

try i2cdetect with and without sudo to see if it makes a difference. Also try 0 instead of 1.

avvy65 commented 4 years ago

Thanks but I also tried it on an arduino uno using a i2c scanner sketch and it didn't din't find an i2c address. I have sent it back now, and will look for another one to work with my pi zero.

Regards Rob

On Thu, 19 Dec 2019 at 17:33, Thijs Triemstra notifications@github.com wrote:

i2cdetect - 1 returns no address at all for the display, so I guess it is faulty

try i2cdetect with and without sudo to see if it makes a difference. Also try 0 instead of 1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rm-hull/luma.oled/issues/266?email_source=notifications&email_token=AK36XJ4INFJAIGJVEON2FJTQZOV6BA5CNFSM4J5C5NUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKLA4I#issuecomment-567586929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK36XJY3QCI3WT4DG465TFLQZOV6BANCNFSM4J5C5NUA .

thijstriemstra commented 4 years ago

okidoki. Feel free to re-open this ticket if you have software issues with that one.