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

Method probe

modules/drivers/rtc/ds3231.js:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 super.writeBlock(DS3231_TIME_CAL_ADDR, buf);
95 }
96 static probe() {
97 const i = new I2C({address: DS3231_ADDR, throw: false});
98 const result = i.read(1);
99 i.close();
100 return undefined !== result;
101 }
102}
103
104export default DS3231;

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected