summaryrefslogtreecommitdiff
path: root/docs/pyboard/tutorial
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-09-15 11:07:43 +1000
committerDamien George <damien@micropython.org>2021-09-16 12:40:05 +1000
commite3eebc329f06983dd1fe304e1ceddbafb814f1e6 (patch)
tree5708581c280f1102a51282f01935eed4cb38e287 /docs/pyboard/tutorial
parent9e2423e730ae32cd82e5c06099e6a847a2020f6a (diff)
stm32: Suggest putting code in main.py not boot.py.
Don't want users to accidentally use boot.py (because recovering requires knowing how to activate safe mode). Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/pyboard/tutorial')
-rw-r--r--docs/pyboard/tutorial/usb_mouse.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/pyboard/tutorial/usb_mouse.rst b/docs/pyboard/tutorial/usb_mouse.rst
index 8166946ec..d05b16ed5 100644
--- a/docs/pyboard/tutorial/usb_mouse.rst
+++ b/docs/pyboard/tutorial/usb_mouse.rst
@@ -8,8 +8,8 @@ To do this we must first edit the ``boot.py`` file to change the USB
configuration. If you have not yet touched your ``boot.py`` file then it
will look something like this::
- # boot.py -- run on boot-up
- # can run arbitrary Python, but best to keep it minimal
+ # boot.py -- run on boot to configure USB and filesystem
+ # Put app code in main.py
import pyb
#pyb.main('main.py') # main script to run after this one