diff --git a/adding-module.rst b/adding-module.rst index bd9e2ff..c62b63b 100644 --- a/adding-module.rst +++ b/adding-module.rst @@ -133,10 +133,11 @@ actually add that function object to our module: Micropython uses the QSTR-macros to define constant strings. This is used to identify strings and store only unique ones for preserving memory (as it is -very limited on the PyBoard-Hardware). Your port has a file ``qstrdefsport.h``. -In our case add ``Q(hello)`` to the list (on a new line). This will define the -string ``hello`` for Micropython. Failing to do so will result in a missing -file on compilation. +very limited on the PyBoard-Hardware). +The string ``hello`` will be auto-generated by ``py/makeqstrdata.py`` upon +compilation. This may fail if a string contains special characters; In this +case, add ``Q(the_funky+string<>)`` to ``qstrdefsport.h``. Failing to do so will +result in a missing file on compilation. Now when you compile and flash the firmware, you will be able to import the module and call the function inside it.