File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ board.open(process.env.PORT || '/dev/tty.usbmodem141101')
12
12
console . log ( 'executing raw' )
13
13
return board . exec_raw ( {
14
14
command : `
15
+ """
16
+ Warning: You may need to change the pin number
17
+ """
15
18
from machine import Pin
16
19
from time import sleep
17
20
pin = Pin(6, Pin.OUT)
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ function extractFileArray(output) {
6
6
output = output . replace ( / ' / g, '"' ) ;
7
7
output = output . split ( 'OK' )
8
8
let files = output [ 2 ] || ''
9
- // let files = output.find((data) => {
10
- // if (data.indexOf('[') === 0 && data.indexOf(']') !== -1) {
11
- // return true
12
- // }
13
- // })
14
9
files = files . slice ( 0, files . indexOf ( ']' ) + 1 )
15
10
files = JSON . parse ( files )
16
11
return files
You can’t perform that action at this time.
0 commit comments