AttributeError in onionGpio.onionGpio(pin)
-
Hi everyone
I have a "silly" problem.
I'm beginning the Python programming in Onion Omega2
That's my program lines, just like the help saysimport onionGpio
pin13 = onionGpio.onionGpio(13)the "program" breaks here with the message
AttributeError: 'module' object has no attribute 'onionGpio'Of course I have installing the module like the manual explains, without errors
opkg update
opkg install python-light pyOnionGpioThe error is not only writing with a text editor but in the Python command line
I also updated firmware and restartWhat is happening?
Thanks
-
@Eduardo-Perez-Mateos said in AttributeError in onionGpio.onionGpio(pin):
pin13 = onionGpio.onionGpio(13)
Please try with capital letter 'O'
pin13 = onionGpio.OnionGpio(13)
-
Perfect.
that was the "problem" no comment about myself
Thank you very much György