Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
cc975a94
Commit
cc975a94
authored
Jan 17, 2016
by
Arnim Läuger
Browse files
move ow.reset
parent
66eb0dfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/ow.md
View file @
cc975a94
...
@@ -84,6 +84,19 @@ Read multi bytes.
...
@@ -84,6 +84,19 @@ Read multi bytes.
#### Returns
#### Returns
`string`
bytes read from slave device
`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()
## ow.reset_search()
Clear the search state so that it will start from the beginning again.
Clear the search state so that it will start from the beginning again.
...
@@ -193,19 +206,6 @@ Set a pin in onewire mode.
...
@@ -193,19 +206,6 @@ Set a pin in onewire mode.
#### Returns
#### Returns
`nil`
`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()
## ow.skip()
Issue a 1-Wire rom skip command, to address all on bus.
Issue a 1-Wire rom skip command, to address all on bus.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment