Skip to content

Commit 6b58152

Browse files
Remove broken help links for blocks
We will reinstate these when help documentation is available.
1 parent f32984f commit 6b58152

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

pxtextension.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,12 @@ namespace ml {
5151
}
5252
}
5353

54-
/**
55-
* Run this code when the model detects the input label has been predicted.
56-
*
57-
* This automatically starts running the ML model in the background.
58-
* When the model predicts the indicated label, an event is raised to
59-
* trigger this handler.
60-
*
61-
* @param mlEvent The label event that triggers this code to run.
62-
* @param body The code to run when the model predicts the label.
63-
*/
6454
//% blockId=ml_on_event_start
6555
//% block="on ML $event start"
6656
//% weight=50
6757
//% parts="v2"
6858
//% group="micro:bit (V2)"
59+
//% help=none
6960
export function onStart(event: MlEvent, body: () => void): void {
7061
event.onStartHandler = body;
7162
const wrappedBody = () => {
@@ -89,6 +80,7 @@ namespace ml {
8980
//% weight=40
9081
//% parts="v2"
9182
//% group="micro:bit (V2)"
83+
//% help=none
9284
export function onStop(event: MlEvent, body: () => void): void {
9385
if (!isRunning()) {
9486
startRunning();
@@ -102,6 +94,7 @@ namespace ml {
10294
//% draggableParameters="reporter"
10395
//% parts="v2"
10496
//% group="micro:bit (V2)"
97+
//% help=none
10598
export function onStopDetailed(
10699
event: MlEvent,
107100
body: (duration: number) => void
@@ -117,6 +110,7 @@ namespace ml {
117110
//% weight=20
118111
//% parts="v2"
119112
//% group="micro:bit (V2)"
113+
//% help=none
120114
export function isDetected(event: MlEvent): boolean {
121115
if (!isRunning()) {
122116
startRunning();
@@ -129,6 +123,7 @@ namespace ml {
129123
//% block="certainty (\\%) ML $event"
130124
//% weight=10
131125
//% parts="v2"
126+
//% help=none
132127
export function getCertainty(event: MlEvent): number {
133128
const eventValue = event.eventValue;
134129
if (eventValue <= 1) {

0 commit comments

Comments
 (0)