Source

Raspberry Pi GPIO Web Control / gpio.conf.MUST_BE_CHANGED

# Copyright 2012 der-bub.de
# http://www.der-bub.de
# Author: Sebastian Bub (sebastian@der-bub.de)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
#
# simple configuration file to define handling of GPIO ports
#
# use GPIO names here (not RPi connections)
# http://elinux.org/RPi_BCM2835_GPIOs
# e.g. GPIO 0 (SDA) is Ping 3
#
# - valid values for DIRECTION are IN or OUT or TI
#   IN: input port
#   OUT: output port
#   TI: read analog input. Whenever port is read, the following steps are done:
#      (During init the port is set as input port)
#       0. Check that it is not blocked.
#       1. It is reconfigured to be an output port.
#       2. It is set to the value of DEFAULT.STATE (required).
#       3. Wait for the time specified in AUTO.TOGGLE (required).
#       4. It is reconfigured to be an input port.
#       5. It is read (in a while loop as fast as possible (max is ti.max.counter),
#          until a value of (required) not-DEFAULT.STATE is returned.
#       6. The counter of the while loop is returned (which can be checked with conditions).
#       7. It stays an input port until next read.
# - choose a name which does not get you in trouble addressing it
#   as a http parameter (umlaut, spaces), e.g. sensor1
# - if you do not set the default state, it is defined by the OS (default state
#   is required on auto toggle and TI direction)
# - auto toggle interval is specified in ms (requires default state),
#   e.g. if you set a gpio, it will automatically flip to default state
#   after specified time. auto toggle must be smaller than block time
# - block time is specified in ms, e.g. you can not set the gpio again during
#   this interval (ensure that user does not "click multiple times")
# - choose an appropriate block time for every TI port (or unpredictable things
#   may happen depeding on your hardware)
# - only comment out those ports that you need (as they are set up)
#   on startup (they are exported in sysfs)

# you must set simulate to false for the real world
simulate.gpios=true

# if direction TI, max looping (it is about 2500ms)
ti.max.counter=100000

#GPIO.0 = P1-03
#GPIO.0.DIRECTION=OUT
#GPIO.0.NAME=g0
#GPIO.0.OUT.DEFAULT.STATE=0
#GPIO.0.OUT.AUTO.TOGGLE.TIME=250
#GPIO.0.OUT.BLOCK.TIME=10000

#GPIO.1 = P1-05
#GPIO.1.DIRECTION=OUT
#GPIO.1.NAME=g1
#GPIO.1.OUT.DEFAULT.STATE=0
#GPIO.1.OUT.AUTO.TOGGLE.TIME=250
#GPIO.1.OUT.BLOCK.TIME=10000

#GPIO.4 = P1-07
#GPIO.4.DIRECTION=OUT
#GPIO.4.NAME=g4
#GPIO.4.OUT.DEFAULT.STATE=0
#GPIO.4.OUT.AUTO.TOGGLE.TIME=250
#GPIO.4.OUT.BLOCK.TIME=10000

#GPIO.7 = P1-26
#GPIO.7.DIRECTION=OUT
#GPIO.7.NAME=g7
#GPIO.7.OUT.DEFAULT.STATE=0
#GPIO.7.OUT.AUTO.TOGGLE.TIME=250
#GPIO.7.OUT.BLOCK.TIME=10000

#GPIO.8 = P1-24
#GPIO.8.DIRECTION=OUT
#GPIO.8.NAME=g8
#GPIO.8.OUT.DEFAULT.STATE=0
#GPIO.8.OUT.AUTO.TOGGLE.TIME=250
#GPIO.8.OUT.BLOCK.TIME=10000

#GPIO.9 = P1-21
#GPIO.9.DIRECTION=OUT
#GPIO.9.NAME=g9
#GPIO.9.OUT.DEFAULT.STATE=0
#GPIO.9.OUT.AUTO.TOGGLE.TIME=250
#GPIO.9.OUT.BLOCK.TIME=10000

#GPIO.10 = P1-19
#GPIO.10.DIRECTION=OUT
#GPIO.10.NAME=g10
#GPIO.10.OUT.DEFAULT.STATE=0
#GPIO.10.OUT.AUTO.TOGGLE.TIME=250
#GPIO.10.OUT.BLOCK.TIME=10000

#GPIO.11 = P1-23
#GPIO.11.DIRECTION=OUT
#GPIO.11.NAME=g11
#GPIO.11.OUT.DEFAULT.STATE=0
#GPIO.11.OUT.AUTO.TOGGLE.TIME=250
#GPIO.11.OUT.BLOCK.TIME=10000

#GPIO.14 = P1-08
#GPIO.14.DIRECTION=OUT
#GPIO.14.NAME=g14
#GPIO.14.OUT.DEFAULT.STATE=0
#GPIO.14.OUT.AUTO.TOGGLE.TIME=250
#GPIO.14.OUT.BLOCK.TIME=10000

#GPIO.15 = P1-10
#GPIO.15.DIRECTION=OUT
#GPIO.15.NAME=g15
#GPIO.15.OUT.DEFAULT.STATE=0
#GPIO.15.OUT.AUTO.TOGGLE.TIME=250
#GPIO.15.OUT.BLOCK.TIME=10000

#GPIO.17 = P1-11
#GPIO.17.DIRECTION=OUT
#GPIO.17.NAME=g17
#GPIO.17.OUT.DEFAULT.STATE=0
#GPIO.17.OUT.AUTO.TOGGLE.TIME=250
#GPIO.17.OUT.BLOCK.TIME=10000

#GPIO.18 = P1-12
#GPIO.18.DIRECTION=OUT
#GPIO.18.NAME=g18
#GPIO.18.OUT.DEFAULT.STATE=0
#GPIO.18.OUT.AUTO.TOGGLE.TIME=250
#GPIO.18.OUT.BLOCK.TIME=10000

#GPIO.21 = P1-13 or P1-11 on rev 2.0
#GPIO.21.DIRECTION=OUT
#GPIO.21.NAME=g21
#GPIO.21.OUT.DEFAULT.STATE=0
#GPIO.21.OUT.AUTO.TOGGLE.TIME=250
#GPIO.21.OUT.BLOCK.TIME=10000

#GPIO.22 = P1-15
#GPIO.22.DIRECTION=OUT
#GPIO.22.NAME=g22
#GPIO.22.OUT.DEFAULT.STATE=0
#GPIO.22.OUT.AUTO.TOGGLE.TIME=250
#GPIO.22.OUT.BLOCK.TIME=10000

#GPIO.23 = P1-16
#GPIO.23.DIRECTION=OUT
#GPIO.23.NAME=g23
#GPIO.23.OUT.DEFAULT.STATE=0
#GPIO.23.OUT.AUTO.TOGGLE.TIME=250
#GPIO.23.OUT.BLOCK.TIME=10000

#GPIO.24 = P1-18
#GPIO.24.DIRECTION=OUT
#GPIO.24.NAME=g24
#GPIO.24.OUT.DEFAULT.STATE=0
#GPIO.24.OUT.AUTO.TOGGLE.TIME=250
#GPIO.24.OUT.BLOCK.TIME=10000

#GPIO.25 = P1-22
#GPIO.25.DIRECTION=OUT
#GPIO.25.NAME=g25
#GPIO.25.OUT.DEFAULT.STATE=0
#GPIO.25.OUT.AUTO.TOGGLE.TIME=250
#GPIO.25.OUT.BLOCK.TIME=10000
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.