()
| 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 | |
| 104 | export default DS3231; |