add block to stop program (#943)

* add block to stop program

* renaming
This commit is contained in:
Peli de Halleux
2019-10-09 09:30:42 -07:00
committed by GitHub
parent fb5776ec41
commit a4e02dcd03
6 changed files with 36 additions and 3 deletions

View File

@ -26,6 +26,7 @@ namespace brick {
*/
//% blockId=brickBatteryProperty block="battery %property"
//% group="Battery"
//% blockGap=8
//% help=brick/battery-property
export function batteryInfo(property: BatteryProperty): number {
const info = sensors.internal.getBatteryInfo();

View File

@ -85,7 +85,7 @@ namespace brick {
//% blockId=buttonIsPressed
//% parts="brick"
//% blockNamespace=brick
//% weight=81 blockGap=8
//% weight=81
//% group="Buttons"
//% button.fieldEditor="brickbuttons"
isPressed() {