Skip to content

Commit 93378fd

Browse files
committed
small docs update
1 parent 7eddf32 commit 93378fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jswrap_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ information (all optional):
721721
// setting irq:true will call that function in the interrupt itself
722722
irq : false(default)
723723
// Advanced: If specified, the given pin will be read whenever the watch is called
724-
// and the state will be included as a 'data' field in the callback
724+
// and the state will be included as a 'data' field in the callback (`debounce:0` is required)
725725
data : pin
726726
// Advanced: On Nordic devices, a watch may be 'high' or 'low' accuracy. By default low
727727
// accuracy is used (which is better for power consumption), but this means that
@@ -740,7 +740,7 @@ The `function` callback is called with an argument, which is an object of type
740740
When using `edge:'rising'` or `edge:'falling'`, this is not the same as when
741741
the function was last called.
742742
* `data` is included if `data:pin` was specified in the options, and can be
743-
used for reading in clocked data
743+
used for reading in clocked data. It will only work if `debounce:0` is used
744744
745745
For instance, if you want to measure the length of a positive pulse you could
746746
use `setWatch(function(e) { console.log(e.time-e.lastTime); }, BTN, {

0 commit comments

Comments
 (0)