I have been using python3 to program the SM Industrial Automation card. I've tried to use the getLet() function but it doesn't seem to be in the megaind python library. Here is a trace of what happens at REPL level:
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import megaind
>>> megaind.get0_10In(0, 1)
0.0
>>> megaind.getLed(0, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'megaind' has no attribute 'getLed'
>>>
I have looked at the __init__.py in ~/megaind-rpi/python/megaind and the getLet() function is included. Not sure if I'm using the library incorrectly.
Can you shed some light on this?
Python 3.7.3 (default, Oct 31 2022, 14:04:00)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import megaind
>>> megaind.get0_10In(0, 1)
0.0
>>> megaind.getLed(0, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'megaind' has no attribute 'getLed'
>>>
I have looked at the __init__.py in ~/megaind-rpi/python/megaind and the getLet() function is included. Not sure if I'm using the library incorrectly.
Can you shed some light on this?