-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62ab8f9
commit 3bafedc
Showing
6 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"mlrunner.customOnEvent": "FR - Register a TypeScript function to run when an event is raised.\n* This custom version of the MakeCode onEvent function is needed due to:\nhttps://github.com/microsoft/pxt-microbit/issues/5709\n*", | ||
"mlrunner.customOnEvent|param|flags": "FR - The specified event flags are ignored and configured via pxt.json.", | ||
"mlrunner.customOnEvent|param|handler": "FR - The function to call when the event is detected.", | ||
"mlrunner.customOnEvent|param|src": "FR - The ID of the component to listen to.", | ||
"mlrunner.customOnEvent|param|value": "FR - The event value to listen to from that component." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"ml.event.Unknown|block": "FR - unknown", | ||
"ml.getCertainty|block": "FR - certainty (\\%) ML $event", | ||
"ml.isDetected|block": "FR - is ML $event detected", | ||
"ml.onStart|block": "FR - on ML $event start", | ||
"ml.onStopDetailed|block": "FR - on ML $event stop $duration (ms)", | ||
"ml.onStop|block": "FR - on ML $event stop", | ||
"mlrunner|block": "FR - mlrunner", | ||
"{id:category}Ml": "FR - Ml", | ||
"{id:category}MlEvent": "FR - MlEvent", | ||
"{id:category}Mlrunner": "FR - Mlrunner", | ||
"{id:group}micro:bit (V2)": "FR - micro:bit (V2)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# file read | ||
|
||
FR | ||
|
||
Reads the contents of a file from the file system | ||
|
||
```sig | ||
files.read("/path/to/file.txt", "UTF-8") | ||
``` | ||
|
||
## Parameters | ||
|
||
* **path**: a string that contains the path to the file on disk | ||
* **encoding**: the encoding of the file to be read | ||
|
||
## Example | ||
|
||
This example reads from a file on disk and prints the contents to the console. | ||
|
||
```blocks | ||
const contents = files.read("/path/to/file.txt", "UTF-8"); | ||
console.log(contents) | ||
``` | ||
|
||
## See also | ||
* [write file](./write-file) | ||
|
||
```package | ||
my-custom-extension=github:username/extension-repo | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# file read | ||
|
||
Reads the contents of a file from the file system | ||
|
||
```sig | ||
files.read("/path/to/file.txt", "UTF-8") | ||
``` | ||
|
||
## Parameters | ||
|
||
* **path**: a string that contains the path to the file on disk | ||
* **encoding**: the encoding of the file to be read | ||
|
||
## Example | ||
|
||
This example reads from a file on disk and prints the contents to the console. | ||
|
||
```blocks | ||
const contents = files.read("/path/to/file.txt", "UTF-8"); | ||
console.log(contents) | ||
``` | ||
|
||
## See also | ||
* [write file](./write-file) | ||
|
||
```package | ||
my-custom-extension=github:username/extension-repo | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters