Why am always getting this error when calling
Traceback (most recent call last): File "/home/pi/aa.py", line 9, in <module> pigpio.start() AttributeError: 'module' object has no attribute 'start'
After installing pigpio.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
pigpio.start() was deprecated (removed and replaced) years ago.
pigpio now allows multiple Pis to be controlled from one script.
You should now be using the following style.
#!/usr/bin/env python import pigpio pi = pigpio.pi() # connect to Pi if not pi.connected: exit() pi.write(4, 1) # set GPIO 4 high level = pi.read(7) # read GPIO 7 pi.stop() # disconnect from Pi
See pigpio Python examples.