Python 3.2.3 (default, Mar 1 2013, 11:53:50) [GCC 4.6.3] on linux2 Type "copyright", "credits" or "license()" for more information. >>> import RPi.GPIO as GPIO >>> help(GPIO) Help on module RPi.GPIO in RPi: NAME RPi.GPIO - GPIO functionality of a Raspberry Pi using Python CLASSES builtins.object PWM class PWM(builtins.object) | Pulse Width Modulation class | | Methods defined here: | | ChangeDutyCycle(...) | Change the duty cycle | dutycycle - between 0.0 and 100.0 | | ChangeFrequency(...) | Change the frequency | frequency - frequency in Hz (freq > 1.0) | | __init__(...) | x.__init__(...) initializes x; see help(type(x)) for signature | | start(...) | Start software PWM | dutycycle - the duty cycle (0.0 to 100.0) | | stop(...) | Stop software PWM | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __new__ = | T.__new__(S, ...) -> a new object with type S, a subtype of T FUNCTIONS add_event_callback(...) Add a callback for an event already defined using add_event_detect() gpio - gpio channel callback - a callback function [bouncetime] - Switch bounce timeout in ms add_event_detect(...) Enable edge detection events for a particular GPIO channel. channel - either board pin number or BCM number depending on which mode is set. edge - RISING, FALLING or BOTH [callback] - A callback function for the event (optional) [bouncetime] - Switch bounce timeout in ms for callback cleanup(...) Clean up by resetting all GPIO channels that have been used by this program to INPUT with no pullup/pulldown and no event detection event_detected(...) Returns True if an edge has occured on a given GPIO. You need to enable edge detection using add_event_detect() first. gpio - gpio channel gpio_function(...) Return the current GPIO function (IN, OUT, ALT0) gpio - gpio channel input(...) Input from a GPIO channel. Returns HIGH=1=True or LOW=0=False gpio - gpio channel output(...) Output to a GPIO channel gpio - gpio channel value - 0/1 or False/True or LOW/HIGH remove_event_detect(...) Remove edge detection for a particular GPIO channel gpio - gpio channel setmode(...) Set up numbering mode to use for channels. BOARD - Use Raspberry Pi board numbers BCM - Use Broadcom GPIO 00..nn numbers setup(...) Set up the GPIO channel, direction and (optional) pull/up down control channel - Either: RPi board pin number (not BCM GPIO 00..nn number). Pins start from 1 or : BCM GPIO number direction - INPUT or OUTPUT [pull_up_down] - PUD_OFF (default), PUD_UP or PUD_DOWN [initial] - Initial value for an output channel setwarnings(...) Enable or disable warning messages wait_for_edge(...) Wait for an edge. gpio - gpio channel edge - RISING, FALLING or BOTH DATA ALT0 = 4 BCM = 11 BOARD = 10 BOTH = 3 FALLING = 2 HIGH = 1 IN = 1 LOW = 0 OUT = 0 PUD_DOWN = 1 PUD_OFF = 0 PUD_UP = 2 RISING = 1 RPI_REVISION = 2 VERSION = '0.5.3a' FILE /usr/local/lib/python3.2/dist-packages/RPi/GPIO.cpython-32mu.so >>> GPIO.setmode(GPIO.BOARD) >>> GPIO.setup(7,GPIO.OUT) >>> GPIO.output(7,True) >>> GPIO.output(7,False) >>> GPIO.cleanup() >>>