docs: Document pyb.main function to set main script.

pull/1177/head
Damien George 2015-04-09 10:08:25 +01:00
rodzic 9988618e0e
commit e97dddcdca
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -162,6 +162,13 @@ Miscellaneous functions
Print out lots of information about the board.
.. function:: main(filename)
Set the filename of the main script to run after boot.py is finished. If
this function is not called then the default file main.py will be executed.
It only makes sense to call this function from within boot.py.
.. function:: mount(device, mountpoint, \*, readonly=False, mkfs=False)
Mount a block device and make it available as part of the filesystem.