-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial catalog and validator plans for Micro:bit (#5443)
I expect these will be iterated on. I just wanted to have something here to get started.
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 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,17 @@ | ||
{ | ||
"criteria": [ | ||
{ | ||
"id": "D285D79B-85E5-4C8D-82D2-5A9E35AB1163", | ||
"use": "show_icon_on_screen", | ||
"template": "Show an icon on the LED screen", | ||
"docPath": "/teachertool" | ||
}, | ||
{ | ||
"id": "C57344FC-B915-4ACB-A070-67F8FFC18B4B", | ||
"use": "read_gpio_pin", | ||
"template": "Read a GPIO pin", | ||
"description": "Read input from one or more of the microbit GPIO pins.", | ||
"docPath": "/teachertool" | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"criteria": [] | ||
} |
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,3 @@ | ||
{ | ||
"validatorPlans": [] | ||
} |
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,60 @@ | ||
{ | ||
"validatorPlans": [ | ||
{ | ||
".desc": "Set the LED screen.", | ||
"name": "show_icon_on_screen", | ||
"threshold": 1, | ||
"checks": [ | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"basic_show_icon": 1 | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
".desc": "Read input from a GPIO pin.", | ||
"name": "read_gpio_pin", | ||
"threshold": 1, | ||
"checks": [ | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"device_pin_event": 1 | ||
} | ||
}, | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"device_pin_is_pressed": 1 | ||
} | ||
}, | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"device_pin_released": 1 | ||
} | ||
}, | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"device_get_digital_pin": 1 | ||
} | ||
}, | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"device_get_analog_pin": 1 | ||
} | ||
}, | ||
{ | ||
"validator": "blocksExist", | ||
"blockCounts": { | ||
"pins_on_pulsed": 1 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |