From cc975a947e9177c4c73e942c5a1672fc557b1eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sun, 17 Jan 2016 11:13:11 +0100 Subject: [PATCH] move ow.reset --- docs/en/modules/ow.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/en/modules/ow.md b/docs/en/modules/ow.md index d5f45958..363d9764 100644 --- a/docs/en/modules/ow.md +++ b/docs/en/modules/ow.md @@ -84,6 +84,19 @@ Read multi bytes. #### Returns `string` bytes read from slave device +## ow.reset() +Perform a 1-Wire reset cycle. + +#### Syntax +`ow.reset(pin)` + +#### Parameters +`pin` 1~12, IO index + +#### Returns + - `1` if a device responds with a presence pulse. + - `0` if there is no device or the bus is shorted or otherwise held low for more than 250 µS. + ## ow.reset_search() Clear the search state so that it will start from the beginning again. @@ -193,19 +206,6 @@ Set a pin in onewire mode. #### Returns `nil` -## ow.reset() -Perform a 1-Wire reset cycle. - -#### Syntax -`ow.reset(pin)` - -#### Parameters -`pin` 1~12, IO index - -#### Returns - - `1` if a device responds with a presence pulse. - - `0` if there is no device or the bus is shorted or otherwise held low for more than 250 µS. - ## ow.skip() Issue a 1-Wire rom skip command, to address all on bus.