Getting no attribute 'setmode' error for module 'RPiSim.GPIO'
Importing RPi simulator as following (as mentioned in README.md)
from RPiSim import GPIO
which gives Attribute error for setmode method.
GPIO.setmode(GPIO.BCM)
AttributeError: module 'RPiSim.GPIO' has no attribute 'setmode'
PS: Looks like an import error. GPIO module should be imported from RPiSim.GPIO
My application runs fine, when importing like:
from RPiSim.GPIO import GPIO
As 'setmode' is a method of GPIO class in GPIO module.