diff --git a/src/blocks/arduino.ts b/src/blocks/arduino.ts index 98d60ca..f7acba9 100644 --- a/src/blocks/arduino.ts +++ b/src/blocks/arduino.ts @@ -159,7 +159,7 @@ const blocks: BlockDefinition = [ ], style: "leaphy_blocks", output: "Number", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Ambient%20light%20sensor", }, { type: "leaphy_i2c_gesture", @@ -170,6 +170,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_led_set_strip", + message0: "%%{BKY_LEAPHY_LED_SET_STRIP} %1 %%{BKY_LEAPHY_LED_SET_PIN} %2 %%{BKY_LEAPHY_LED_SET_LEDS} %3", args0: [ @@ -181,7 +182,7 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Potmeter-,Multiple%20leds%C2%A0,-Led%20matrix%C2%A0", }, { type: "leaphy_led_set_basic", @@ -205,7 +206,7 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Oled%20display-,RGB%20led,-Potmeter", }, { type: "leaphy_led_set_speed", @@ -221,7 +222,7 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Oled%20display-,RGB%20led,-Potmeter", }, { type: "leaphy_display_clear", @@ -382,7 +383,7 @@ const blocks: BlockDefinition = [ nextStatement: null, style: "leaphy_blocks", tooltip: "%{BKY_USE_I2C_CHANNEL_TOOLTIP}", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Batteries%20and%20power-,I2C%20sensor%20module%C2%A0,-Sensors", }, { type: "i2c_list_devices", @@ -390,13 +391,14 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Batteries%20and%20power-,I2C%20sensor%20module%C2%A0,-Sensors" }, { type: "leaphy_tof_get_distance", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Light%20sensor-,ToF%20sensor%C2%A0,-Infrared%20sensor", message0: "%%{BKY_LEAPHY_TOF_GET_DISTANCE}", style: "leaphy_blocks", output: "Number", - helpUrl: "", }, { type: "leaphy_get_air_pressure", @@ -407,6 +409,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_segment_set", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=%C2%A0Single%20leds-,Segment%20display%C2%A0,-Oled%20display", message0: `%{BKY_LEAPHY_SEGMENT_SET}`, args0: [ { @@ -421,6 +424,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_segment_clear", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=%C2%A0Single%20leds-,Segment%20display%C2%A0,-Oled%20display", message0: "%{BKY_LEAPHY_SEGMENT_CLEAR}", previousStatement: null, nextStatement: null, @@ -428,6 +432,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_segment_set_brightness", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=%C2%A0Single%20leds-,Segment%20display%C2%A0,-Oled%20display", message0: "%{BKY_LEAPHY_SEGMENT_SET_BRIGHTNESS}", args0: [ { @@ -442,6 +447,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_matrix_set", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Multiple%20leds-,Led%20matrix%C2%A0,-Speaker%C2%A0", message0: "%{BKY_LEAPHY_MATRIX_SET}", args0: [ { @@ -467,6 +473,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_matrix_set_brightness", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Multiple%20leds-,Led%20matrix%C2%A0,-Speaker%C2%A0", message0: "%{BKY_LEAPHY_MATRIX_SET_BRIGHTNESS}", args0: [ { @@ -481,6 +488,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_matrix_clear", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Multiple%20leds-,Led%20matrix%C2%A0,-Speaker%C2%A0", message0: "%{BKY_LEAPHY_MATRIX_CLEAR}", previousStatement: null, nextStatement: null, @@ -488,6 +496,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_matrix_fill", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Multiple%20leds-,Led%20matrix%C2%A0,-Speaker%C2%A0", message0: "%{BKY_LEAPHY_MATRIX_FILL}", args0: [ { type: "input_dummy" }, @@ -504,6 +513,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_sound_play", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Led%20matrix-,Speaker,-Stichting", message0: "%{BKY_LEAPHY_SOUND_PLAY}", args0: [ { @@ -519,6 +529,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_sound_stop", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Led%20matrix-,Speaker,-Stichting", message0: "%{BKY_LEAPHY_SOUND_STOP}", previousStatement: null, nextStatement: null, @@ -526,6 +537,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_sound_set_volume", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Led%20matrix-,Speaker,-Stichting", message0: "%{BKY_LEAPHY_SOUND_SET_VOLUME}", args0: [ { @@ -541,6 +553,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_led_strip_demo", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Potmeter-,Multiple%20leds%C2%A0,-Led%20matrix%C2%A0", message0: "%%{BKY_LEAPHY_LED_STRIP_DEMO} %1 %2 %3 %4 %5", args0: [ { @@ -569,7 +582,6 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", - helpUrl: "", }, ]; diff --git a/src/blocks/leaphy_click.ts b/src/blocks/leaphy_click.ts index aed27db..478bfb5 100644 --- a/src/blocks/leaphy_click.ts +++ b/src/blocks/leaphy_click.ts @@ -43,7 +43,7 @@ const blocks: BlockDefinition = [ previousStatement: null, nextStatement: null, style: "leaphy_blocks", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=types%20of%20leds-,TT%20motors,-Servo%20motors", }, { type: "leaphy_click_rgb_digitalwrite", @@ -74,7 +74,7 @@ const blocks: BlockDefinition = [ nextStatement: null, style: "leaphy_blocks", // "extensions": "refreshPinFields", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Different%20types%20of%20leds", }, ]; diff --git a/src/blocks/leaphy_common.ts b/src/blocks/leaphy_common.ts index 8fc89b9..0ae3c96 100644 --- a/src/blocks/leaphy_common.ts +++ b/src/blocks/leaphy_common.ts @@ -47,7 +47,7 @@ const blocks: BlockDefinition = [ nextStatement: null, style: "leaphy_blocks", // "extensions": "refreshServoPinFields", - helpUrl: "http://arduino.cc/en/Reference/ServoWrite", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=TT%20motors-,Servo%20motors,-Rotating%20servo%20motor", }, { type: "leaphy_servo_read", @@ -62,7 +62,7 @@ const blocks: BlockDefinition = [ output: "Number", style: "leaphy_blocks", // "extensions": "returnAndUpdateServoRead", - helpUrl: "http://arduino.cc/en/Reference/ServoRead", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=TT%20motors-,Servo%20motors,-Rotating%20servo%20motor", }, { type: "leaphy_io_digitalwrite", @@ -137,11 +137,12 @@ const blocks: BlockDefinition = [ ], output: "Number", style: "leaphy_blocks", - helpUrl: "", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Programming-,Ultrasonic%20sensor,-Light%20sensor", }, { type: "leaphy_segment_init", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=%C2%A0Single%20leds-,Segment%20display%C2%A0,-Oled%20display", message0: "%{BKY_LEAPHY_SEGMENT_INIT}", args0: [ { @@ -161,6 +162,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_matrix_init", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Multiple%20leds-,Led%20matrix%C2%A0,-Speaker%C2%A0", message0: "%{BKY_LEAPHY_MATRIX_INIT}", args0: [ { @@ -185,6 +187,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_sound_init", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Led%20matrix-,Speaker%C2%A0,-Stichting", message0: "%{BKY_LEAPHY_SOUND_INIT}", args0: [ { diff --git a/src/blocks/leaphy_flitz.ts b/src/blocks/leaphy_flitz.ts index 195190a..846d8ae 100644 --- a/src/blocks/leaphy_flitz.ts +++ b/src/blocks/leaphy_flitz.ts @@ -16,6 +16,7 @@ const blocks: BlockDefinition = [ options: stomachSensorOptions, }, ], + helpUrl: "https://www.leaphy.nl/leaphy-flitz.html#:~:text=het%20licht%20wordt.-,Bouwfilmpjes%20Leaphy%20Flitz,-Software%20Leaphy%20Flitz", output: "Number", style: "leaphy_blocks", }, @@ -23,18 +24,21 @@ const blocks: BlockDefinition = [ type: "leaphy_flitz_nano_read_stomach_sensor", message0: "%%{BKY_LEAPHY_READ_STOMACH}", output: "Number", + helpUrl: "https://www.leaphy.nl/leaphy-flitz.html#:~:text=het%20licht%20wordt.-,Bouwfilmpjes%20Leaphy%20Flitz,-Software%20Leaphy%20Flitz", style: "leaphy_blocks", }, { type: "leaphy_flitz_read_hand_sensor", message0: "%%{BKY_LEAPHY_READ_HAND}", output: "Number", + helpUrl: "https://www.leaphy.nl/leaphy-flitz.html#:~:text=het%20licht%20wordt.-,Bouwfilmpjes%20Leaphy%20Flitz,-Software%20Leaphy%20Flitz", style: "leaphy_blocks", }, { type: "leaphy_flitz_nano_read_hand_sensor", message0: "%%{BKY_LEAPHY_READ_HAND}", output: "Number", + helpUrl: "https://www.leaphy.nl/leaphy-flitz.html#:~:text=het%20licht%20wordt.-,Bouwfilmpjes%20Leaphy%20Flitz,-Software%20Leaphy%20Flitz", style: "leaphy_blocks", }, { @@ -50,6 +54,7 @@ const blocks: BlockDefinition = [ inputsInline: true, previousStatement: null, nextStatement: null, + helpUrl: "https://www.leaphy.nl/leaphy-flitz.html#:~:text=het%20licht%20wordt.-,Bouwfilmpjes%20Leaphy%20Flitz,-Software%20Leaphy%20Flitz", style: "leaphy_blocks", }, ]; diff --git a/src/blocks/leaphy_original.ts b/src/blocks/leaphy_original.ts index 8a62bb3..e63ef0a 100644 --- a/src/blocks/leaphy_original.ts +++ b/src/blocks/leaphy_original.ts @@ -22,6 +22,7 @@ const motorForwardBackwardDropdown = [ const blocks: BlockDefinition = [ { type: "leaphy_original_set_led", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Different%20types%20of%20leds", message0: "%%{BKY_LEAPHY_LED} %1 %%{BKY_LEAPHY_LED_RED} %2 %%{BKY_LEAPHY_LED_GREEN} %3 %%{BKY_LEAPHY_LED_BLUE} %4", args0: [ @@ -37,6 +38,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_original_set_motor", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=types%20of%20leds-,TT%20motors,-Servo%20motors", message0: "%%{BKY_LEAPHY_MOTOR_TYPE} %1 %2 %%{BKY_LEAPHY_MOTOR_SPEED} %3", args0: [ @@ -55,12 +57,14 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_original_get_distance", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=Programming-,Ultrasonic%20sensor,-Light%20sensor", message0: "%%{BKY_LEAPHY_GET_DISTANCE}", style: "leaphy_blocks", output: "Number", }, { type: "leaphy_original_move_motors", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=types%20of%20leds-,TT%20motors,-Servo%20motors", message0: "%%{BKY_LEAPHY_MOTOR_DIRECTION} %1 %2 %3", args0: [ { @@ -91,6 +95,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_original_servo_set", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=TT%20motors-,Servo%20motors,-Rotating%20servo%20motor", message0: "%{BKY_LEAPHY_SERVO_SET}", args0: [ { @@ -114,6 +119,7 @@ const blocks: BlockDefinition = [ }, { type: "leaphy_original_servo_move", + helpUrl: "https://www.leaphyfoundation.com/tutorials-leaphy-electronics.html#:~:text=TT%20motors-,Servo%20motors,-Rotating%20servo%20motor", message0: "%{BKY_LEAPHY_SERVO_MOVE}", args0: [ {