MCPcopy Create free account
hub / github.com/BruceDevices/firmware / ReadBuff

Method ReadBuff

lib/utility/AXP192.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void AXP192::ReadBuff(uint8_t Addr, uint8_t Size, uint8_t *Buff) {
120 Wire1.beginTransmission(0x34);
121 Wire1.write(Addr);
122 Wire1.endTransmission();
123 Wire1.requestFrom(0x34, (int)Size);
124 for (int i = 0; i < Size; i++) {
125 *(Buff + i) = Wire1.read();
126 }
127}
128
129void AXP192::ScreenBreath(int brightness) {
130 if (brightness > 100 || brightness < 0) return;

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected