We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049df5b commit a18c69cCopy full SHA for a18c69c
README.md
@@ -11,10 +11,7 @@ This is a arduino library that helps to buffer values.
11
12
## Getting Started
13
14
-- ``` length``` Buffer size
15
-- ``` init ``` Initial value
16
-
17
-### Constructors
+### Create buffer instance
18
```
19
Buffer b = Buffer(length, init);
20
@@ -27,6 +24,11 @@ or
27
24
Buffer* b = new Buffer(length, init);
28
25
29
26
+### Constructor
+```Buffer(length, init)``` Create a new instance and clear the buffer.
+``` length```: Buffer size, ``` init ```: Initial value
30
+
31
32
### Getters
33
- ```calcAverage()``` Calc the buffer average and return the result
34
- ```getAverage()``` Just return the buffer average
0 commit comments