fixing more groups

This commit is contained in:
Peli de Halleux 2017-10-28 09:20:34 -07:00
parent 84b98a2788
commit 7c2ea7c406
2 changed files with 4 additions and 3 deletions

View File

@ -116,6 +116,7 @@
"{id:category}Sensors": "Sensors",
"{id:category}Serial": "Serial",
"{id:group}Brick": "Brick",
"{id:group}Buttons": "Buttons",
"{id:group}Color Sensor": "Color Sensor",
"{id:group}Gyro Sensor": "Gyro Sensor",
"{id:group}Infrared Sensor": "Infrared Sensor",

View File

@ -89,7 +89,7 @@ namespace brick {
//% parts="brick"
//% blockNamespace=brick
//% weight=81 blockGap=8
//% group="Brick"
//% group="Buttons"
isPressed() {
return this._isPressed
}
@ -104,7 +104,7 @@ namespace brick {
//% parts="brick"
//% blockNamespace=brick
//% weight=80 blockGap=8
//% group="Brick"
//% group="Buttons"
wasPressed() {
const r = this._wasPressed
this._wasPressed = false
@ -122,7 +122,7 @@ namespace brick {
//% parts="brick"
//% blockNamespace=brick
//% weight=99 blockGap=8
//% group="Brick"
//% group="Buttons"
onEvent(ev: ButtonEvent, body: () => void) {
control.onEvent(this._id, ev, body)
}