Skip to content

analog input not working #18

@eikaramba

Description

@eikaramba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions