MCPcopy Create free account
hub / github.com/PaulStoffregen/Audio / write

Method write

control_wm8731.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77bool AudioControlWM8731::write(unsigned int reg, unsigned int val)
78{
79 Wire.beginTransmission(WM8731_I2C_ADDR);
80 Wire.write((reg << 1) | ((val >> 8) & 1));
81 Wire.write(val & 0xFF);
82 Wire.endTransmission();
83 return true;
84}
85
86bool AudioControlWM8731::volumeInteger(unsigned int n)
87{

Callers 1

css_defaultDisplayFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected