Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ setPrescaler
Method
setPrescaler
libraries/AnalogPin/AnalogPin.cpp:26–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
25
26
void AnalogPin::setPrescaler(const uint8_t prescale)
27
{
28
_prescale = prescale;
29
if (_prescale < 2) _prescale = 2;
30
else if (_prescale > 7) _prescale = 7;
31
};
32
33
34
void AnalogPin::setSmoothWeight(const uint8_t alpha)
Callers
1
unittest
Function · 0.80
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.64