mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix main script FS template
This commit is contained in:
parent
eb29fc8894
commit
7d949694ef
@ -65,7 +65,8 @@ static const char fresh_main_py[] =
|
||||
"# main.py -- put your code here!\n"
|
||||
"import pyb, time\n"
|
||||
"led = pyb.LED(3)\n"
|
||||
"while (vcp_is_connected()==False):\n"
|
||||
"usb = pyb.USB_VCP()\n"
|
||||
"while (usb.isconnected()==False):\n"
|
||||
" led.on()\n"
|
||||
" time.sleep(150)\n"
|
||||
" led.off()\n"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user