MCPcopy 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
26void 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
34void AnalogPin::setSmoothWeight(const uint8_t alpha)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64