Fixed the documentation to match the implementation

This commit is contained in:
philip 2016-04-25 21:34:21 -04:00
parent 09ba1fc897
commit 45722f3d79
1 changed files with 3 additions and 3 deletions

View File

@ -64,8 +64,8 @@ Sets a callback on specific events.
If the callback is None or omitted, then the registration is cancelled. If the callback is None or omitted, then the registration is cancelled.
The callback will be invoked with three arguments when the event happens. The first argument is the The callback will be invoked with three arguments when the event happens. The first argument is the eventtype,
current position of the rotary switch, the second is the eventtype, and the third is the time when the event happened. the second is the current position of the rotary switch, and the third is the time when the event happened.
The position is tracked The position is tracked
and is represented as a signed 32-bit integer. Increasing values indicate clockwise motion. The time is the number of microseconds represented and is represented as a signed 32-bit integer. Increasing values indicate clockwise motion. The time is the number of microseconds represented
@ -73,7 +73,7 @@ in a 32-bit integer. Note that this wraps every hour or so.
#### Example #### Example
rotary.on(0, rotary.ALL, function (pos, type, when) rotary.on(0, rotary.ALL, function (type, pos, when)
print "Position=" .. pos .. " event type=" .. type .. " time=" .. when print "Position=" .. pos .. " event type=" .. type .. " time=" .. when
end) end)