MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / readBytes

Method readBytes

modules/drivers/bmp180/bmp180.js:45–48  ·  view source on GitHub ↗
(address, count)

Source from the content-addressed store, hash-verified

43 return (buffer[0] << 8) | buffer[1];
44 }
45 readBytes(address, count) {
46 this.write(address);
47 return this.read(count);
48 }
49 twoCompl(value) {
50 if (value > 32767) {
51 value = -(65535 - value + 1);

Callers 2

getTemperatureMethod · 0.95
getPressureMethod · 0.95

Calls 2

writeMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected