[riot-notifications] [RIOT-OS/RIOT] pkg: micropython: initial commit (#2968)

Kaspar Schleiser 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:
https://github.com/RIOT-OS/RIOT/pull/2968#discussion_r304844655
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190718/6de99d3f/attachment.htm>


More information about the notifications mailing list