MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setPeriod

Method setPeriod

libraries/FunctionGenerator/functionGenerator.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23void funcgen::setPeriod(float period)
24{
25 _period = period;
26 _freq1 = 1 / period;
27 _freq2 = 2 * _freq1;
28 _freq4 = 4 * _freq1;
29 _freq0 = TWO_PI * _freq1;
30}
31
32
33float funcgen::line()

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64