Aktualisiere main.ts, _locales/de/Grove-strings.json
This commit is contained in:
parent
09d5101805
commit
74bd8f6e49
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"{id:category}Grove": "Grove",
|
"{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.None|block": "keine",
|
||||||
"GroveGesture.Right|block": "rechts",
|
"GroveGesture.Right|block": "rechts",
|
||||||
"GroveGesture.Left|block": "links",
|
"GroveGesture.Left|block": "links",
|
||||||
@ -11,7 +15,7 @@
|
|||||||
"GroveGesture.Anticlockwise|block": "Gegenuhrzeigersinn",
|
"GroveGesture.Anticlockwise|block": "Gegenuhrzeigersinn",
|
||||||
"GroveGesture.Wave|block": "Welle",
|
"GroveGesture.Wave|block": "Welle",
|
||||||
"grove.initGesture|block": "initialisiere Grove Gestenerkennung",
|
"grove.initGesture|block": "initialisiere Grove Gestenerkennung",
|
||||||
"grove.getGestureModel|block": "hole Geste",
|
"grove.getGestureModel|block": "lies Geste",
|
||||||
"grove.onGesture|block": "wenn Grove - Gestensensor |%gesture|",
|
"grove.onGesture|block": "wenn Grove - Gestensensor |%gesture|",
|
||||||
"grove.measureInCentimeters|block": "Ultraschallsensor (in cm) an |%pin",
|
"grove.measureInCentimeters|block": "Ultraschallsensor (in cm) an |%pin",
|
||||||
"grove.measureInInches|block": "Ultraschallsensor (in inch) an |%pin",
|
"grove.measureInInches|block": "Ultraschallsensor (in inch) an |%pin",
|
||||||
@ -35,5 +39,5 @@
|
|||||||
"GroveJoystickKey.Press|block": "Gedrückt",
|
"GroveJoystickKey.Press|block": "Gedrückt",
|
||||||
"grove.joyread|block": "%GroveJoystick|lies Position von Joystick an|%xpin|und|%ypin",
|
"grove.joyread|block": "%GroveJoystick|lies Position von Joystick an|%xpin|und|%ypin",
|
||||||
"grove.onJoystick|block": "wenn Grove - Joysticktaste|%key 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"
|
||||||
}
|
}
|
4
main.ts
4
main.ts
@ -559,7 +559,7 @@ namespace grove {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_getgesture block="get gesture model"
|
//% blockId=grove_getgesture block="get gesture model"
|
||||||
//% group=Gesture"
|
//% group="Gesture"
|
||||||
export function getGestureModel(): number {
|
export function getGestureModel(): number {
|
||||||
return paj7620.read();
|
return paj7620.read();
|
||||||
}
|
}
|
||||||
@ -580,7 +580,7 @@ namespace grove {
|
|||||||
* @param handler code to run
|
* @param handler code to run
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_gesture_create_event block="on Gesture|%gesture"
|
//% blockId=grove_gesture_create_event block="on Gesture|%gesture"
|
||||||
//% group=Gesture"
|
//% group="Gesture"
|
||||||
export function onGesture(gesture: GroveGesture, handler: () => void) {
|
export function onGesture(gesture: GroveGesture, handler: () => void) {
|
||||||
control.onEvent(gestureEventId, gesture, handler);
|
control.onEvent(gestureEventId, gesture, handler);
|
||||||
paj7620.init();
|
paj7620.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user