Driver for the Dallas DS3231, a highly accurate RTC IC. I wrote this driver to make an easier to use and complete driver to access all the functions the DS3231 has. The driver has been designed for ...
import utime from machine import I2C, Pin from ds3231_port import DS3231 scl_pin = Pin(15, Pin.IN, Pin.PULL_UP) sda_pin = Pin(4, Pin.IN, Pin.PULL_UP) i2c = I2C(scl=scl_pin, sda=sda_pin, freq=400000) ...
例えば、MicroPython用マイコン「pyboard」で以下のコードを実行すると、pyboardのLEDをオンにして「Hello MicroPython!」と シリアルコンソール に出力することができます。 また、ブラウザ上でpyboardを操作できる ウェブアプリ も公開されています。