Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ setGain
Method
setGain
libraries/MCP_DAC/MCP_DAC.cpp:107–112 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
105
106
107
bool MCP_DAC::setGain(uint8_t gain)
108
{
109
if ((0 == gain) || (gain > 2)) return false;
110
_gain = gain;
111
return true;
112
}
113
114
115
bool MCP_DAC::analogWrite(uint16_t value, uint8_t channel)
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36