2f365d234e
Initial version, using the LP RTC clock. It provides setting the date and time with rtc.init() or rtc.datetime(), and reading the date and time with rtc.datetime() or rtc.now(). The method weekday() reports the weekday of the current date. It starts with 0 for Monday. The tuple order for datetime() and now() matches the CPython sequence: (year, month, day, hour, minute, second, microsecond, TZ). TZ is ignored and reported as None. Microsecond is provided at a best effort. If a battery is not supplied, the default boot date/time is 1970/1/1 0:0:0. With a battery, the clock continues to run even when the board is not powered. The clock is quite precise. If not, using rtc.calibration() may help. |
||
---|---|---|
.. | ||
boards | ||
hal | ||
modules | ||
board_init.c | ||
led.c | ||
led.h | ||
machine_led.c | ||
machine_pin.c | ||
machine_rtc.c | ||
machine_timer.c | ||
main.c | ||
Makefile | ||
mimxrt_flash.c | ||
modmachine.c | ||
modmachine.h | ||
modmimxrt.c | ||
modmimxrt.h | ||
moduos.c | ||
modutime.c | ||
mpconfigport.h | ||
mphalport.c | ||
mphalport.h | ||
pin.c | ||
pin.h | ||
qstrdefsport.h | ||
README.md | ||
ticks.c | ||
ticks.h | ||
tusb_config.h | ||
tusb_port.c |
Port of MicroPython to NXP iMX RT 10xx
Currently supports Teensy 4.0 and the i.MX RT1010 EVK board.
Features:
- REPL over USB VCP
- machine.Pin
Known issues:
- pyboard.py doesn't work with files larger than 64 bytes
- machine.Pin class currently does not support GPIOMUX option of i.MX RT101x variants
TODO:
- Enable TCM
- Peripherals (LED, Timers, etc)