Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ getGain
Method
getGain
libraries/MCP_DAC/MCP_DAC.h:44–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
// gain = 1 or 2
43
bool setGain(uint8_t gain = 1);
44
uint8_t getGain() { return _gain; };
45
46
bool analogWrite(uint16_t value, uint8_t channel = 0);
47
uint16_t lastValue(uint8_t channel = 0) { return _value[channel]; };
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36