Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ setSmoothWeight
Method
setSmoothWeight
libraries/AnalogPin/AnalogPin.cpp:34–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
33
34
void AnalogPin::setSmoothWeight(const uint8_t alpha)
35
{
36
_alpha = alpha;
37
if (_alpha > 31) _alpha = 31;
38
};
39
40
41
int AnalogPin::read(const bool twice)
Callers
1
unittest
Function · 0.80
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.64