Teacher Tool: Clean Micro:Bit Catalog (#5592)

This commit is contained in:
Thomas Sparks 2024-04-15 16:46:44 -07:00 коммит произвёл GitHub
Родитель df139272b0
Коммит 561b8b406f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 97 добавлений и 109 удалений

Просмотреть файл

@ -2,8 +2,9 @@
"criteria": [
{
"id": "D285D79B-85E5-4C8D-82D2-5A9E35AB1163",
"use": "show_icon_on_screen",
"template": "Show an icon on the display",
"use": "output_to_led_display",
"template": "Outputs to the LED display",
"description": "Uses at least one block that lights up LEDs",
"docPath": "/teachertool"
},
{
@ -50,6 +51,7 @@
"use": "on_shake_gesture",
"template": "Runs code when the micro:bit is shaken",
"description": "When the user shakes the micro:bit, the code inside this block will run.",
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
@ -60,20 +62,6 @@
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
"id": "67FB5A95-57A8-4496-8865-F682923C36F7",
"use": "pick_random_exists",
"template": "Utilizes the pick random block",
"description": "The project utilizes the pick random block",
"docPath": "/teachertool"
},
{
"id": "BBD02C45-8515-4936-B99F-8FF29025C333",
"use": "conditional_exists",
"template": "Utilizes the if/else block",
"description": "The project includes at least one conditional block",
"docPath": "/teachertool"
},
{
"id": "499EEFAB-2487-427E-8081-28EE031C7D17",
"use": "hand_equal_to_number",
@ -87,6 +75,7 @@
"use": "conditional_show_icon",
"template": "Show an icon on display when a condition is met",
"description": "The project shows an icon on the display when a condition is met",
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
@ -154,20 +143,6 @@
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
"id": "1B331451-081E-4F26-9CB6-F5A649432BF9",
"use": "repeat_loop_used",
"template": "Repeat loop is used",
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
"id": "A4F05FAB-72F2-48F5-8E33-7AE2CBB6CD43",
"use": "forever_used",
"template": "Forever loop is used",
"hideInCatalog": true,
"docPath": "/teachertool"
},
{
"id": "5934E4C6-7AE4-46A4-8F92-99101987D064",
"use": "show_icon_on_start",
@ -192,4 +167,4 @@
"docPath": "/teachertool"
}
]
}
}

Просмотреть файл

@ -10,20 +10,50 @@
"instanceId": "-3sSPpeXd-M2WaHObA1yq"
},
{
"catalogCriteriaId": "A4F05FAB-72F2-48F5-8E33-7AE2CBB6CD43",
"instanceId": "2H_lA-5kA1bpPhHitt_Gs"
"catalogCriteriaId": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"instanceId": "2H_lA-5kA1bpPhHitt_Gs",
"params": [
{
"name": "block",
"value": "device_forever"
},
{
"name": "count",
"value": "1"
}
]
},
{
"catalogCriteriaId": "1B331451-081E-4F26-9CB6-F5A649432BF9",
"instanceId": "Bw5GPuGHqfWG14AWmnvaY"
"catalogCriteriaId": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"instanceId": "Bw5GPuGHqfWG14AWmnvaY",
"params": [
{
"name": "block",
"value": "controls_repeat_ext"
},
{
"name": "count",
"value": "1"
}
]
},
{
"catalogCriteriaId": "B835FAA0-8CA6-4E4A-95B4-7FC6D15231BD",
"instanceId": "IlpiBn6Tjn0mkjCrVGI0v"
},
{
"catalogCriteriaId": "850DBBDE-71BA-48D2-A1E4-7AC19716C976",
"instanceId": "rvzANbK3nhtd7dPcVBYF4"
"catalogCriteriaId": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"instanceId": "rvzANbK3nhtd7dPcVBYF4",
"params": [
{
"name": "block",
"value": "device_get_sound_level"
},
{
"name": "count",
"value": "1"
}
]
},
{
"catalogCriteriaId": "F82F6BB4-2B1C-4CFF-92BA-65CE63DD6399",

Просмотреть файл

@ -10,12 +10,32 @@
"instanceId": "FeEhmngBzesVwrOThm8oW"
},
{
"catalogCriteriaId": "67FB5A95-57A8-4496-8865-F682923C36F7",
"instanceId": "qpJlRBbsZYG1q87c2vaV6"
"catalogCriteriaId": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"instanceId": "qpJlRBbsZYG1q87c2vaV6",
"params": [
{
"name": "block",
"value": "device_random"
},
{
"name": "count",
"value": "1"
}
]
},
{
"catalogCriteriaId": "BBD02C45-8515-4936-B99F-8FF29025C333",
"instanceId": "EGMmpeasViCQJVazRky7f"
"catalogCriteriaId": "59AAC5BA-B0B3-4389-AA90-1E767EFA8563",
"instanceId": "EGMmpeasViCQJVazRky7f",
"params": [
{
"name": "block",
"value": "controls_if"
},
{
"name": "count",
"value": "1"
}
]
},
{
"catalogCriteriaId": "499EEFAB-2487-427E-8081-28EE031C7D17",

Просмотреть файл

@ -16,6 +16,29 @@
}
]
},
{
".desc": "Shows something on the LED screen.",
"name": "output_to_led_display",
"threshold": 1,
"checks": [
{
"validator": "blocksInSetExist",
"blocks": [
"device_show_number",
"device_show_leds",
"basic_show_icon",
"device_print_message",
"device_plot",
"device_led_toggle",
"device_plot_bar_graph",
"device_plot_brightness",
"device_show_image_offset",
"device_scroll_image"
],
"count": 1
}
]
},
{
".desc": "Read input from a GPIO pin.",
"name": "read_gpio_pin",
@ -267,38 +290,6 @@
}
]
},
{
".desc": "'pick random' block is present",
"name": "pick_random_exists",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": [
{
"blockId": "device_random",
"count": 1
}
]
}
]
},
{
".desc": "'if/else' block is present",
"name": "conditional_exists",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": [
{
"blockId": "controls_if",
"count": 1
}
]
}
]
},
{
".desc": "read value of 'hand' variable",
"name": "hand_variable_accessed",
@ -440,7 +431,11 @@
"count": 1
}
],
"childValidatorPlans": ["soundlevel_greater_than_check", "row_variable_set_random", "col_variable_set_random"]
"childValidatorPlans": [
"soundlevel_greater_than_check",
"row_variable_set_random",
"col_variable_set_random"
]
}
]
},
@ -516,13 +511,13 @@
"checks": [
{
"validator": "blocksExist",
"blockCounts":[
"blockCounts": [
{
"blockId": "controls_if",
"count": 1
}
],
"childValidatorPlans": ["point_bool_check" , "unplot_vars_used", "plot_vars_used"]
"childValidatorPlans": ["point_bool_check", "unplot_vars_used", "plot_vars_used"]
}
]
},
@ -539,39 +534,7 @@
"count": 1
}
],
"childValidatorPlans": ["point_condition" , "soundlevel_gt_condition"]
}
]
},
{
".desc": "forever loop is in the program",
"name": "forever_used",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": [
{
"blockId": "device_forever",
"count": 1
}
]
}
]
},
{
".desc": "repeat loop is in the program",
"name": "repeat_loop_used",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": [
{
"blockId": "controls_repeat_ext",
"count": 1
}
]
"childValidatorPlans": ["point_condition", "soundlevel_gt_condition"]
}
]
},