summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-05-13 21:11:31 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-05-13 21:11:31 (GMT)
commit4af873c9e3e5b9bf84bb875de203df8b2d3193c6 (patch)
tree281650bfcd518fc1fa594345d76dc031ed6f6175
parent93ad0e69722ecb6686ba4aac516a70118f7bbe62 (diff)
docs: appguide: Describe how to hack on frozen modules
-rw-r--r--docs/appguide.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/appguide.rst b/docs/appguide.rst
index 7372885..6f4cc98 100644
--- a/docs/appguide.rst
+++ b/docs/appguide.rst
@@ -348,6 +348,17 @@ section to add an import and register for you application to ``main.py``
The micropython import path "prefers" frozen modules to those found in the
external filesystem. If your application is both frozen and copied to
external FLASH then the frozen version will be loaded.
+
+ In many cases it is possible to avoid rebuilding the binary in order to
+ test new features by parsing the code in the global namespace and then
+ patching it into the existing code. For example the following can be used
+ to adopt a new version of the CST816S driver:
+
+ .. code-block::
+
+ ./tools/wasptool\
+ --exec wasp/drivers/cst816s.py\
+ --eval "watch.touch = CST816S(watch.i2c)"`
Application entry points
------------------------