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
5bebc494
Commit
5bebc494
authored
Feb 03, 2021
by
Marcel Stör
Committed by
Nathaniel Wesley Filardo
Dec 30, 2021
Browse files
Add missing periods
parent
7a20d7d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/modules/pixbuf.md
View file @
5bebc494
...
...
@@ -22,7 +22,7 @@ Allocate a new memory buffer to store LED values.
`pixbuf.buffer`
object
## pixbuf.buffer:get()
Return the value at the given position, in native strip color order
Return the value at the given position, in native strip color order
.
#### Syntax
`buffer:get(index)`
...
...
@@ -41,7 +41,7 @@ print(buffer:get(1))
```
## pixbuf.buffer:set()
Set the value at the given position, in native strip color order
Set the value at the given position, in native strip color order
.
#### Syntax
`buffer:set(index, color)`
...
...
@@ -77,7 +77,7 @@ buffer = pixbuf.newBuffer(32, 3):set(1, string.char(0, 255, 0))
```
## pixbuf.buffer:size()
Return the size of the buffer in number of LEDs
Return the size of the buffer in number of LEDs
.
#### Syntax
`buffer:size()`
...
...
@@ -89,7 +89,7 @@ none
`int`
## pixbuf.buffer:channels()
Return the buffer's channel count
Return the buffer's channel count
.
#### Syntax
`buffer:channels()`
...
...
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