pi@raspberrypi ~/projects $ python
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pigpio
>>> pi = pigpio.pi()
>>> mode = pi.get_mode(17)
>>> mode
1L
>>> pi.write(17,0)
0L
No comments:
Post a Comment