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

Method setValue

libraries/DAC8554/DAC8554.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void DAC8554::setValue(uint8_t channel, uint16_t value)
117{
118 _value[channel] = value;
119 uint8_t configRegister = _address;
120 configRegister |= DAC8554_ALL_WRITE;
121 configRegister |= (channel << 1);
122 writeDevice(configRegister, value);
123}
124
125
126// channel = 0, 1, 2, 3 depending on type

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36