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

Method average

libraries/M62429/M62429.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93int M62429::average()
94{
95 if (_muted) return M62429_MUTED;
96 uint8_t v = (((int)_vol[0]) + _vol[1]) / 2;
97 setVolume(2, v);
98 return M62429_OK;
99}
100
101
102void M62429::muteOn()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36