diff options
author | Dave Hylands <dhylands@gmail.com> | 2015-10-07 21:26:04 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-10-19 21:12:42 +0100 |
commit | 504420c51d91da13e6fd42514475049ab5b15c6d (patch) | |
tree | 772800e66d0da97390ede2490ffb956396420d1f /stmhal/main.c | |
parent | 2c040edef819e08775a0ae1b461334a0b108319f (diff) |
stmhal: Early version of machine module for stmhal.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index f814fdfc4..fe4b4c20c 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -135,6 +135,7 @@ static const char fresh_boot_py[] = "# boot.py -- run on boot-up\r\n" "# can run arbitrary Python, but best to keep it minimal\r\n" "\r\n" +"import machine\r\n" "import pyb\r\n" "#pyb.main('main.py') # main script to run after this one\r\n" "#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n" |