Aktualisiere main.ts, _locales/de/Grove-strings.json

This commit is contained in:
Michael Klein 2020-09-17 18:31:59 +02:00
parent 09d5101805
commit 74bd8f6e49
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
{
"{id:category}Grove": "Grove",
"{id:groups}4-Digit": "4 Ziffern Display",
"{id:groups}Ultrasonic": "Ultraschall",
"{id:groups}Gesture": "Gestenerkennung",
"{id:groups}Thumbjoystick": "Grove Joystick",
"GroveGesture.None|block": "keine",
"GroveGesture.Right|block": "rechts",
"GroveGesture.Left|block": "links",
@ -11,7 +15,7 @@
"GroveGesture.Anticlockwise|block": "Gegenuhrzeigersinn",
"GroveGesture.Wave|block": "Welle",
"grove.initGesture|block": "initialisiere Grove Gestenerkennung",
"grove.getGestureModel|block": "hole Geste",
"grove.getGestureModel|block": "lies Geste",
"grove.onGesture|block": "wenn Grove - Gestensensor |%gesture|",
"grove.measureInCentimeters|block": "Ultraschallsensor (in cm) an |%pin",
"grove.measureInInches|block": "Ultraschallsensor (in inch) an |%pin",
@ -35,5 +39,5 @@
"GroveJoystickKey.Press|block": "Gedrückt",
"grove.joyread|block": "%GroveJoystick|lies Position von Joystick an|%xpin|und|%ypin",
"grove.onJoystick|block": "wenn Grove - Joysticktaste|%key an|%xpin|und|%ypin",
"grove.getJoystick|block": "hole Joysticktaste an|%xpin|und|%ypin"
"grove.getJoystick|block": "lies Joysticktaste an|%xpin|und|%ypin"
}

View File

@ -559,7 +559,7 @@ namespace grove {
*
*/
//% blockId=grove_getgesture block="get gesture model"
//% group=Gesture"
//% group="Gesture"
export function getGestureModel(): number {
return paj7620.read();
}
@ -580,7 +580,7 @@ namespace grove {
* @param handler code to run
*/
//% blockId=grove_gesture_create_event block="on Gesture|%gesture"
//% group=Gesture"
//% group="Gesture"
export function onGesture(gesture: GroveGesture, handler: () => void) {
control.onEvent(gestureEventId, gesture, handler);
paj7620.init();