Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Wio Extension - RTC を MicroPython から使う

Wio Extension - RTC を MicroPython から使う

SORACOM Meetup #0 in 札幌での LT 発表資料。

MinoruInachi

July 19, 2019
Tweet

More Decks by MinoruInachi

Other Decks in Technology

Transcript

  1. # wiortc Πϯϙʔτ from wiortc import WioRTC # WioRTC ΦϒδΣΫτ࡞੒ɾ࢝ಈ

    i2c = pyb.I2C(1, pyb.I2C.MASTER) rtc = WioRTC(i2c) rtc.begin() # ͜ͷؒʹԿΒ͔ͷ Wio LTE ͷॲཧ # ԿඵޙʹిݯΛೖΕΔ͔ઃఆͯ͠ిݯஅ rtc.set_wakeup_period(30) rtc.shutdown()