Aktualisiere main.ts, _locales/de/Grove-strings.json
This commit is contained in:
parent
3dec943bf8
commit
b33add3283
@ -16,7 +16,7 @@
|
||||
"GroveGesture.Wave|block": "Welle",
|
||||
"grove.initGesture|block": "initialisiere Grove Gestenerkennung",
|
||||
"grove.getGestureModel|block": "lies Geste",
|
||||
"grove.onGesture|block": "wenn Grove - Gestensensorgeste |%gesture|",
|
||||
"grove.onGesture|block": "wenn Grovegeste |%gesture|",
|
||||
"grove.measureInCentimeters|block": "Ultraschallsensor (in cm) an |%pin",
|
||||
"grove.measureInInches|block": "Ultraschallsensor (in inch) an |%pin",
|
||||
"grove.createDisplay|block": "4-Ziffern Display an|%clkPin|und|%dataPin",
|
||||
|
28
main.ts
28
main.ts
@ -61,25 +61,25 @@ enum GroveGesture {
|
||||
}
|
||||
|
||||
enum GroveJoystickKey {
|
||||
//% block=None
|
||||
//% block="None"
|
||||
None = 0,
|
||||
//% block=Right
|
||||
//% block="Right"
|
||||
Right = 1,
|
||||
//% block=Left
|
||||
//% block="Left"
|
||||
Left = 2,
|
||||
//% block=Up
|
||||
//% block="Up"
|
||||
Up = 3,
|
||||
//% block=Down
|
||||
//% block="Down"
|
||||
Down = 4,
|
||||
//% block=Upper left
|
||||
//% block="Upper left"
|
||||
UL = 5,
|
||||
//% block=Upper right
|
||||
//% block="Upper right"
|
||||
UR = 6,
|
||||
//% block=Lower left
|
||||
//% block="Lower left"
|
||||
LL = 7,
|
||||
//% block=Lower right
|
||||
//% block="Lower right"
|
||||
LR = 8,
|
||||
//% block=press
|
||||
//% block="press"
|
||||
Press = 9
|
||||
}
|
||||
|
||||
@ -595,6 +595,14 @@ namespace grove {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the key name to a number
|
||||
* Useful for comparisons
|
||||
*/
|
||||
//% blockId=joystickkey block="%key"
|
||||
export function joystickkey(key: GroveJoystickKey): number {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do something when a key is detected by Grove - Thumb Joystick
|
||||
|
Loading…
Reference in New Issue
Block a user