8000 Update examples · arduino/micropython.js@d11251c · GitHub
[go: up one dir, main page]

Skip to content

Commit d11251c

Browse files
committed
Update examples
1 parent e1ad10c commit d11251c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/01_execute_string.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ board.open(process.env.PORT || '/dev/tty.usbmodem141101')
1212
console.log('executing raw')
1313
return board.exec_raw({
1414
command: `
15+
"""
16+
Warning: You may need to change the pin number
17+
"""
1518
from machine import Pin
1619
from time import sleep
1720
pin = Pin(6, Pin.OUT)

examples/05_list_files.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ function extractFileArray(output) {
66
output = output.replace(/'/g, '"');
77
output = output.split('OK')
88
let files = output[2] || ''
9-
// let files = output.find((data) => {
10-
// if (data.indexOf('[') === 0 && data.indexOf(']') !== -1) {
11-
// return true
12-
// }
13-
// })
149
files = files.slice(0, files.indexOf(']')+1)
1510
files = JSON.parse(files)
1611
return files

0 commit comments

Comments
 (0)
0