Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ begin
Method
begin
libraries/HeartBeat/HeartBeat.cpp:20–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
19
20
void HeartBeat::begin(const uint8_t pin, float frequency)
21
{
22
_pin = pin;
23
pinMode(_pin, OUTPUT);
24
25
setFrequency(frequency);
26
enable();
27
}
28
29
30
void HeartBeat::setFrequency(float frequency)
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36