Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d0da51f5
Commit
d0da51f5
authored
Jan 12, 2016
by
Marcel Stör
Browse files
Minor fix with list syntax
parent
bd7a986d
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/tsl2561.md
View file @
d0da51f5
...
...
@@ -77,7 +77,8 @@ Initializes the device on pins sdapin & sclpin. Optionally also configures the d
*
`tsl2561.PACKAGE_T_FN_CL`
(default when omitted)
#### Returns
`status`
value indicating success or failure as explained below
`status`
value indicating success or failure as explained below:
-
`tsl2561.TSL2561_OK`
-
`tsl2561.TSL2561_ERROR_I2CINIT`
can't initialize I2C bus
-
`tsl2561.TSL2561_ERROR_I2CBUSY`
I2C bus busy
...
...
@@ -110,6 +111,7 @@ Sets the integration time and gain settings of the device. When `tls2561.init()`
#### Returns
`status`
value indicating success or failure as explained below:
-
`tsl2561.TSL2561_OK`
-
`tsl2561.TSL2561_ERROR_I2CINIT`
can't initialize I2C bus
-
`tsl2561.TSL2561_ERROR_I2CBUSY`
I2C bus busy
...
...
@@ -126,4 +128,4 @@ if status == tsl2561.TSL2561_OK then
lux
=
tsl2561
.
getlux
()
print
(
"Illuminance: "
..
lux
..
" lx"
)
end
```
```
\ No newline at end of file
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