raspberry-gpio-python Wiki
A Python module to control the GPIO on a Raspberry Pi
Brought to you by:
croston
Installation instructions can be found here
Detailed technical reference of the BCM2835 SOC and Raspberry Pi board can be found here
Wiki: Examples
Wiki: TechRef
Wiki: install
I am new to Raspberry Pi and python and I am trying to learn and understand the RPi.GPIO module but I was not able to locate a
List of (built-in) Functions
With description and syntax
Can somebody please point me in the right direction
Not sure if it helps but you can try this (non interactive) :
python -c 'import RPi.GPIO as GPIO; print(dir(GPIO))'
You will get a list of functions :
['BCM', 'BOARD', 'BOTH', 'FALLING', 'HARD_PWM', 'HIGH', 'I2C', 'IN', 'LOW', 'OUT', 'PUD_DOWN', 'PUD_OFF', 'PUD_UP', 'PWM', 'RISING', 'RPI_INFO', 'RPI_REVISION', 'SERIAL', 'SPI', 'UNKNOWN', 'VERSION', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'add_event_callback', 'add_event_detect', 'cleanup', 'event_detected', 'getmode', 'gpio_function', 'input', 'output', 'remove_event_detect', 'setmode', 'setup', 'setwarnings', 'wait_for_edge']
you can test the capital ones like this :
python -c 'import RPi.GPIO as GPIO; print(GPIO.VERSION)'
0.7.1a3
Thank you Emmanuel
I just get that this cant be installed on my windows system even thought I just want to have it install so I can do coding on my windows system and known that it will work for my PI systems
I tried the standard install command on my apple silicon macintosh. It didn't work because a header file called sys/epoll.h is missing from the system.A little research suggests that this header file belongs to Linux, not clear that it belongs to Macintosh. Here's the full output: