8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ad10c commit d11251cCopy full SHA for d11251c
examples/01_execute_string.js
@@ -12,6 +12,9 @@ board.open(process.env.PORT || '/dev/tty.usbmodem141101')
12
console.log('executing raw')
13
return board.exec_raw({
14
command: `
15
+"""
16
+Warning: You may need to change the pin number
17
18
from machine import Pin
19
from time import sleep
20
pin = Pin(6, Pin.OUT)
examples/05_list_files.js
@@ -6,11 +6,6 @@ function extractFileArray(output) {
6
output = output.replace(/'/g, '"');
7
output = output.split('OK')
8
let files = output[2] || ''
9
- // let files = output.find((data) => {
10
- // if (data.indexOf('[') === 0 && data.indexOf(']') !== -1) {
11
- // return true
- // }
- // })
files = files.slice(0, files.indexOf(']')+1)
files = JSON.parse(files)
return files
0 commit comments