[riot-notifications] [RIOT-OS/RIOT] pkg: micropython: initial commit (#2968)
notifications at github.com
Thu Jul 18 12:24:13 CEST 2019
kaspar030 commented on this pull request.
> + *
+ * ## Available modules
+ * Currently, only these are implemented:
+ * ### thread_getpid()
+ * $ import riot
+ * $ print(riot.thread_getpid())
+ * ### xtimer
+ * $ import xtimer
+ * $ t = xtimer.xtimer(lambda: print("timer triggered"))
+ * $ t.set(100000)
+ * (this fails on ARM for lack of ISR stack)
This fails for the same reason as why a printf() from a regular xtimer callback might fail. No reason not to include xtimer.
I can change the example to something like "change a global variable", but IMO that is much less conveying the point.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications