8000 Bugfix examples by murilopolese · Pull Request #7 · arduino/micropython.js · GitHub
[go: up one dir, main page]

Skip to content

Bugfix examples #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Typo
  • Loading branch information
murilopolese committed Jun 15, 2023
commit 5aaa64024238148a62538114e8a97754cc3b897d
2 changes: 1 addition & 1 deletion examples/06_get_file_contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function main() {
const board = new Board()
await board.open(process.env.PORT)
const output = await board.fs_cat('test.py')
console.log('file contentes:')
console.log('file contents:')
console.log(output)
board.close()
}
Expand Down
4 changes: 2 additions & 2 deletions examples/08_file_exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ async function main() {
if (testFileExists) {
console.log('test.py exists')
} else {
console.log('test.py does not exists')
console.log('test.py does not exist')
}

const fakeFileExists = await board.fs_exists('xxxxxxxxxxx')
if (fakeFileExists) {
console.log('xxxxxxxxxxx exists')
} else {
console.log('xxxxxxxxxxx does not exists')
console.log('xxxxxxxxxxx does not exist')
}

board.close()
Expand Down
0