Source

Raspberry Pi GPIO Web Control / gpio.conf.MUST_BE_CHANGED

Diff from to

gpio.conf.MUST_BE_CHANGED

 #       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).
+#       5. It is read (in a while loop as fast as possible 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 afterwards) or -1
+#          if ti.max.counter is reached.
 #       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
+# - 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)
+# - 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 depending 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)
+# if direction TI, no of max reads in loop; defaults to 100000 (it is about 2500ms)
 ti.max.counter=100000
 
 #GPIO.0 = P1-03
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.