set LED issues with Calico 2.4.2 in Python
Issue #133
resolved
I'm working with Calico 2.4.2 using Python with a Scribbler 2 / Fluke 1 combo. I started up a program which worked without issue in a previous version (though it was at least six months ago). In Calico 2.4.2, I'm encountering errors using the LEDs. The code snippets below were taken directly from the Calico Myro reference page (http://calicoproject.org/Calico_Myro)
set("led", "front", 0)
throws
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: __init__() takes at most 1 argument (3 given)
setLEDFront(0)
works as expected.
setLEDBack(0.5)
throws
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: Cannot cast from source type to destination type.
set("led", "back", 0)
throws
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: __init__() takes at most 1 argument (3 given)
Comments (5)
-
-
setLEDBack(double-argument) is fixed. The documentation needs to be changed since set is no longer a top-level function.
-
reporter Is this complete, except for maybe document update? Can you update the docs if so? Thanks!
-
docs updated.
-
- changed status to resolved
- Log in to comment
setLEDBack should be a floating point argument. I'll look into it. Not sure what constructor is causing trouble either.