pimoroni / led-shim

Python library for the Pimoroni LED SHIM
https://shop.pimoroni.com/products/led-shim
MIT License
32 stars 8 forks source link

missing set_multiple_pixels #11

Open dglaude opened 3 years ago

dglaude commented 3 years ago

The example set_multiple.py use a non existing feature.

It say:

AttributeError: 'module' object has no attribute 'set_multiple_pixels'

pi@blinka:~/Pimoroni/ledshim/examples $ python2 set_multiple.py
Green
Traceback (most recent call last):
  File "set_multiple.py", line 8, in <module>
    ledshim.set_multiple_pixels(range(0, 28), (0, 255, 0))
AttributeError: 'module' object has no attribute 'set_multiple_pixels'
pi@blinka:~/Pimoroni/ledshim/examples $ python3 set_multiple.py
Green
Traceback (most recent call last):
  File "set_multiple.py", line 8, in <module>
    ledshim.set_multiple_pixels(range(0, 28), (0, 255, 0))
AttributeError: module 'ledshim' has no attribute 'set_multiple_pixels'
fishgotnosole commented 3 years ago

Also having exact same issue. Is there any word on a fix, please?

baralong commented 2 years ago

Also the same issue. It does exist in https://github.com/pimoroni/led-shim/blob/master/library/ledshim/__init__.py Perhaps https://get.pimoroni.com/ledshim is getting an older version? Or the later version isn't packed?

Gadgetoid commented 2 years ago

Yup this library has slipped through the cracks somewhat, last release was v0.0.1 - https://pypi.org/project/ledshim/ - May 17th 2018 :scream:

The fix was added two months later and has been in release purgatory for... a while.

On my immediate TODO list!

Edit: Should be fixed as of 0.0.2.

baralong commented 2 years ago

Edit: Should be fixed as of 0.0.2.

Awesome, thanks. I'll test it out this evening, or tomorrow, at least when I get the chance. (regretting not bringing my pi to work ;) )