Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analog input not working #18

Open
eikaramba opened this issue Jan 17, 2024 · 0 comments
Open

analog input not working #18

eikaramba opened this issue Jan 17, 2024 · 0 comments

Comments

@eikaramba
Copy link

the example does not work. analogIn is not defined

i saw that it is defined in the other folder, so if i import import RTk.rtk.GPIO as GPIO it works, however then i get:

value = GPIO.analogIn(RECV_PIN)
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python3\Lib\site-packages\RTk\rtk\GPIO.py", line 99, in analogIn
    return instance.cake(channel)
           ^^^^^^^^^^^^^
AttributeError: 'GPIOClient' object has no attribute 'cake'

man i wanted to implement a simple infrared sensor, but if even the most simple analog reads are not working, than i guess that project is bound to fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant