From 6e7dd4984c68ea74ce3b6adf5720fec015314d97 Mon Sep 17 00:00:00 2001 From: Robert Wolterman Date: Sat, 9 Apr 2016 10:27:53 -0500 Subject: [PATCH] Updating the README to include notes on edge detection and fixing the first line since it wasn't formatted the way I wanted --- README.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 5b0c377..4a5b220 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,5 @@ -# CHIP_IO +CHIP_IO +============================ A CHIP GPIO library Manual:: @@ -51,14 +52,17 @@ Polling inputs:: Waiting for an edge (GPIO.RISING, GPIO.FALLING, or GPIO.BOTH:: +This only works for the AP-EINT1, AP-EINT3, and XPO Pins on the CHIP + GPIO.wait_for_edge(channel, GPIO.RISING) Detecting events:: - GPIO.add_event_detect("CSID0", GPIO.FALLING) + GPIO.setup("XIO-P0", GPIO.IN) + GPIO.add_event_detect("XIO-P0", GPIO.FALLING) #your amazing code here #detect wherever: - if GPIO.event_detected("CSID0"): + if GPIO.event_detected("XIO-P0"): print "event detected!" **PWM**::