File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616pyb .LED (4 ).on () # indicate that we are selecting the mode
1717
1818if switch_value :
19- pyb .usb_mode ('CDC +MSC' )
19+ pyb .usb_mode ('VCP +MSC' )
2020 pyb .main ('cardreader.py' ) # if switch was pressed, run this
2121else :
22- pyb .usb_mode ('CDC +HID' )
22+ pyb .usb_mode ('VCP +HID' )
2323 pyb .main ('datalogger.py' ) # if switch wasn't pressed, run this
2424
2525pyb .LED (4 ).off () # indicate that we finished selecting the mode
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ static const char fresh_boot_py[] =
137137"import machine\r\n"
138138"import pyb\r\n"
139139"#pyb.main('main.py') # main script to run after this one\r\n"
140- "#pyb.usb_mode('CDC +MSC') # act as a serial and a storage device\r\n"
141- "#pyb.usb_mode('CDC +HID') # act as a serial device and a mouse\r\n"
140+ "#pyb.usb_mode('VCP +MSC') # act as a serial and a storage device\r\n"
141+ "#pyb.usb_mode('VCP +HID') # act as a serial device and a mouse\r\n"
142142;
143143
144144static const char fresh_main_py [] =
You can’t perform that action at this time.
0 commit comments