From 504420c51d91da13e6fd42514475049ab5b15c6d Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 7 Oct 2015 21:26:04 -0700 Subject: stmhal: Early version of machine module for stmhal. --- stmhal/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal/main.c') 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" -- cgit v1.2.3