You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Port for Atmel SAMD21 (Commonly known as M0 in product names.)
49
51
* No `machine` API on Atmel SAMD21 port.
50
52
* Only supports Atmel SAMD21 and ESP8266 ports.
51
-
* Unified hardware APIs: [`analogio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/analogio/__init__.html), [`busio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/busio/__init__.html), [`digitalio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/digitalio/__init__.html), [`pulseio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/pulseio/__init__.html), [`touchio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/touchio/__init__.html), [`microcontroller`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/microcontroller/__init__.html), [`board`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/board/__init__.html), [`bitbangio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/bitbangio/__init__.html) (Only available on atmel-samd21 and ESP8266 currently.)
53
+
* The order that files are run and the state thats shared between them. The goal is to clarify the role of each file and make them independent from each other.
54
+
*`boot.py` (or `settings.py`) runs only once on start up before USB is initialized. This lays the ground work for configuring USB at startup rather than it being fixed. Since serial is not available, output is written to boot_out.txt.
55
+
*`code.py` (or `main.py`) is run after every reload until it finishes or is interrupted. After its done the vm and hardware is reinitialized. **This means you cannot read state from code.py in the REPL anymore.** This was changed to reduce confusion about pins and memory being in use.
56
+
* After code.py the REPL can be entered by pressing any key. It no longer shares state with code.py so its a fresh vm.
57
+
* Autoreload state will be maintained across reload.
58
+
* Adds a safe mode that does not run user code after a hard crash or brown out. The hope is that this will make it easier to fix code that causes nasty crashes by making it available through mass storage after the crash. A reset (the button) is needed after its fixed to get back into normal mode.
59
+
* Unified hardware APIs:
60
+
[`audioio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/audioio/__init__.html), [`analogio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/analogio/__init__.html), [`busio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/busio/__init__.html), [`digitalio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/digitalio/__init__.html), [`pulseio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/pulseio/__init__.html), [`touchio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/touchio/__init__.html), [`microcontroller`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/microcontroller/__init__.html), [`board`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/board/__init__.html), [`bitbangio`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/bitbangio/__init__.html) (Only available on atmel-samd21 and ESP8266 currently.)
52
61
* Tracks MicroPython's releases (not master).
53
62
* No module aliasing. (`uos` and `utime` are not available as `os` and `time` respectively.)
54
63
* Modules with a CPython counterpart, such as `time`, are strict [subsets](https://circuitpython.readthedocs.io/en/latest/shared-bindings/time/__init__.html) of their [CPython version](https://docs.python.org/3.4/library/time.html?highlight=time#module-time). Therefore, code from CircuitPython is runnable on CPython but not necessarily the reverse.
55
64
* tick count is available as [`time.monotonic()`](https://circuitpython.readthedocs.io/en/latest/shared-bindings/time/__init__.html#time.monotonic)
56
65
*`os` only available as `uos`
57
66
* atmel-samd21 features
58
67
* RGB status LED
59
-
* Auto-reset after file write over mass storage. (Disable with `samd.disable_autoreset()`)
68
+
* Auto-reload after file write over mass storage. (Disable with `samd.disable_autoreload()`)
60
69
* Wait state after boot and main run, before REPL.
61
-
* Main is one of these: code.txt, code.py, main.py, main.txt
62
-
* Boot is one of these: settings.txt, settings.py, boot.py, boot.txt
70
+
* Main is one of these: `code.txt`, `code.py`, `main.py`, `main.txt`
71
+
* Boot is one of these: `settings.txt`, `settings.py`, `boot.py`, `boot.txt`
0 commit comments