forked from flyher/shumeipai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
raspberry-gpio-python.html
3 lines (3 loc) · 64.7 KB
/
raspberry-gpio-python.html
1
2
3
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content=mNote Mac 2.4.10"/><meta name="created" content="2013-07-29T14:38:19Z"/><meta name="updated" content="2013-07-29T14:38:19Z"/><title>raspberry-gpio-python</title></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><td style="display: table-cell; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: normal; font-family: arial, sans-serif; height: 930.921875px; padding: 0px 10px; text-decoration: initial; vertical-align: top; width: 1110px;">
<p style="display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 16.390625px; font-family: arial, sans-serif; height: 16px; margin: 13.119999885559082px 0px; max-width: 839.6799926757813px; padding: 0px; text-decoration: initial; width: 839.671875px;">This package provides a class to control the GPIO on a Raspberry Pi. </p><p style="display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 16.390625px; font-family: arial, sans-serif; height: 64px; margin: 13.119999885559082px 0px; max-width: 839.6799926757813px; padding: 0px; text-decoration: initial; width: 839.671875px;">Note that this module is unsuitable for real-time or timing critical applications. This is because you can not predict when Python will be busy garbage collecting. It also runs under the Linux kernel which is not suitable for real time applications - it is multitasking O/S and another process may be given priority over the CPU, causing jitter in your program. If you are after true real-time performance and predictability, buy yourself an Arduino <a href="http://www.arduino.cc/" rel="nofollow" style="border: 0px none rgb(0, 0, 204); color: rgb(0, 0, 204); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 16.390625px; font-family: arial, sans-serif; margin: 0px; outline: rgb(0, 0, 204) none 0px; padding: 0px; text-decoration: underline;">http://www.arduino.cc</a> ! </p><p style="display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 16.390625px; font-family: arial, sans-serif; height: 32px; margin: 13.119999885559082px 0px; max-width: 839.6799926757813px; padding: 0px; text-decoration: initial; width: 839.671875px;">Note that the current release does not support SPI, I2C, PWM or serial functionality on the RPi yet. This is planned for the near future - watch this space! One-wire functionality is also planned. </p><p style="display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 16.390625px; font-family: arial, sans-serif; height: 16px; margin: 13.119999885559082px 0px; max-width: 839.6799926757813px; padding: 0px; text-decoration: initial; width: 839.671875px;">Example Usage : </p><pre style="background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgb(238, 238, 238); background-size: auto; display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; height: 714px; margin: 12.201600074768066px 0px; max-width: 854.1119995117188px; overflow: auto; padding: 6.09375px; text-decoration: initial; white-space: pre; width: 854.109375px; background-position: 0% 0%; background-repeat: repeat repeat;"><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">import</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> </span><span style="border: 0px none rgb(102, 0, 102); color: rgb(102, 0, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 0, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">RPi</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">GPIO </span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">as</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO<br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># to use Raspberry Pi board pin numbers</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">setmode</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">BOARD</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up GPIO output channel</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">setup</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">12</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">OUT</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set RPi board pin 12 high</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">output</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">12</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">HIGH</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up GPIO input with pull-up control</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># (pull_up_down be PUD_OFF, PUD_UP or PUD_DOWN, default PUD_OFF)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">setup</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">IN</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> pull_up_down</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">=</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">PUD_UP</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># input from RPi board pin 11</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>input_value </span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">=</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">input</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up rising edge detection (EXPERIMENTAL)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>set_rising_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># check for an event (EXPERIMENTAL)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br></span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">if</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">event_detected</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">):</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br> </span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">print</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 136, 0); color: rgb(0, 136, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 136, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">'Rising edge detected!'</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up falling edge detection (EXPERIMENTAL)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_rising_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> enable</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">=</span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">False</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> </span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># disable rising edge detection (as set above)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_falling_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up high detection (EXPERIMENTAL)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_falling_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> enable</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">=</span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">False</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> </span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># disable falling edge detection (as set above)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_high_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># set up low detection (EXPERIMENTAL)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_high_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">,</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> enable</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">=</span><span style="border: 0px none rgb(0, 0, 136); color: rgb(0, 0, 136); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 0, 136) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">False</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"> </span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># disable high detection (as set above)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">set_low_event</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="border: 0px none rgb(0, 102, 102); color: rgb(0, 102, 102); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(0, 102, 102) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">11</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># to change to BCM GPIO numbering</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">setmode</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">(</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">BCM</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">)</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br><br></span><span style="border: 0px none rgb(136, 0, 0); color: rgb(136, 0, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(136, 0, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;"># to reset every channel that has been set up by this program to INPUT with no pullup/pulldown and no event detection.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;"><br>GPIO</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">.</span><span style="display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; padding: 0px; text-decoration: initial; white-space: pre;">cleanup</span><span style="border: 0px none rgb(102, 102, 0); color: rgb(102, 102, 0); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; margin: 0px; outline: rgb(102, 102, 0) none 0px; padding: 0px; text-decoration: initial; white-space: pre;">()</span></pre>
</td></div><div><br></div></body></html>