Aktualisiere main.ts, _locales/de/Grove-strings.json
This commit is contained in:
parent
e1cbce0a3b
commit
7054d263a6
@ -16,13 +16,13 @@
|
|||||||
"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",
|
||||||
"grove.createDisplay|block": "4-Ziffern Display an|%clkPin|und|%dataPin",
|
"grove.createDisplay|block": "4-Ziffern Display an|%clkPin|und|%dataPin",
|
||||||
"grove.PAJ7620.init|block": "%GroveModule|initialisiere den Gestensensor",
|
"grove.PAJ7620.init|block": "%GestureModul|initialisiere den Gestensensor",
|
||||||
"grove.PAJ7620.read|block": "%GroveModule|erkenne Geste",
|
"grove.PAJ7620.read|block": "%GestureModul|erkenne Geste",
|
||||||
"grove.TM1637.show|block": "%GroveModule|zeige Zahl|%dispData|",
|
"grove.TM1637.show|block": "%4Digit|zeige Zahl|%dispData|",
|
||||||
"grove.TM1637.set|block": "%GroveModule|setze Helligkeit auf|%level|",
|
"grove.TM1637.set|block": "%4Digit|setze Helligkeit auf|%level|",
|
||||||
"grove.TM1637.bit|block": "%GroveModule|zeige Ziffer|%dispData|an Stelle|%bitAddr|",
|
"grove.TM1637.bit|block": "%4Digit|zeige Ziffer|%dispData|an Stelle|%bitAddr|",
|
||||||
"grove.TM1637.point|block": "%GroveModule|schalte Kommapunkt|%point|",
|
"grove.TM1637.point|block": "%4Digit|schalte Kommapunkt|%point|",
|
||||||
"grove.TM1637.clear|block": "%GroveModule|lösche 4-Ziffern Display",
|
"grove.TM1637.clear|block": "%4Digit|lösche 4-Ziffern Display",
|
||||||
"GroveJoystickKey.None|block": "Keiner",
|
"GroveJoystickKey.None|block": "Keiner",
|
||||||
"GroveJoystickKey.Right|block": "Rechts",
|
"GroveJoystickKey.Right|block": "Rechts",
|
||||||
"GroveJoystickKey.Left|block": "Links",
|
"GroveJoystickKey.Left|block": "Links",
|
||||||
|
16
main.ts
16
main.ts
@ -137,7 +137,7 @@ namespace grove {
|
|||||||
/**
|
/**
|
||||||
* Create a new driver of Grove - Gesture
|
* Create a new driver of Grove - Gesture
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_gesture_init block="%strip|initiate the Grove - Gesture"
|
//% blockId=grove_gesture_init block="%Gesturemodul|initiate the Grove - Gesture"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
init() {
|
init() {
|
||||||
this.paj7620Init();
|
this.paj7620Init();
|
||||||
@ -147,7 +147,7 @@ namespace grove {
|
|||||||
/**
|
/**
|
||||||
* Detect and recognize the gestures from Grove - Gesture
|
* Detect and recognize the gestures from Grove - Gesture
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_gesture_read block="%strip|get gesture"
|
//% blockId=grove_gesture_read block="%Gesturemodul|get gesture"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
read(): number {
|
read(): number {
|
||||||
let data = 0, result = 0;
|
let data = 0, result = 0;
|
||||||
@ -257,7 +257,7 @@ namespace grove {
|
|||||||
* Show a 4 digits number on display
|
* Show a 4 digits number on display
|
||||||
* @param dispData value of number
|
* @param dispData value of number
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_tm1637_display_number block="%GroveModule|show number|%dispData"
|
//% blockId=grove_tm1637_display_number block="%4Digit|show number|%dispData"
|
||||||
show(dispData: number)
|
show(dispData: number)
|
||||||
{
|
{
|
||||||
let compare_01:number = dispData % 100;
|
let compare_01:number = dispData % 100;
|
||||||
@ -329,7 +329,7 @@ namespace grove {
|
|||||||
* Set the brightness level of display at from 0 to 7
|
* Set the brightness level of display at from 0 to 7
|
||||||
* @param level value of brightness light level
|
* @param level value of brightness light level
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_tm1637_set_display_level block="%GroveModule|brightness level to|%level"
|
//% blockId=grove_tm1637_set_display_level block="%4Digit|brightness level to|%level"
|
||||||
//% level.min=0 level.max=7
|
//% level.min=0 level.max=7
|
||||||
set(level: number)
|
set(level: number)
|
||||||
{
|
{
|
||||||
@ -346,7 +346,7 @@ namespace grove {
|
|||||||
* @param dispData value of number
|
* @param dispData value of number
|
||||||
* @param bitAddr value of bit number
|
* @param bitAddr value of bit number
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_tm1637_display_bit block="%GroveModule|show single number|%dispData|at digit|%bitAddr"
|
//% blockId=grove_tm1637_display_bit block="%4Digit|show single number|%dispData|at digit|%bitAddr"
|
||||||
//% dispData.min=0 dispData.max=9
|
//% dispData.min=0 dispData.max=9
|
||||||
//% bitAddr.min=0 bitAddr.max=3
|
//% bitAddr.min=0 bitAddr.max=3
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
@ -376,7 +376,7 @@ namespace grove {
|
|||||||
* Turn on or off the colon point on Grove - 4-Digit Display
|
* Turn on or off the colon point on Grove - 4-Digit Display
|
||||||
* @param pointEn value of point switch
|
* @param pointEn value of point switch
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_tm1637_display_point block="%GroveModul|turn|%point|colon point"
|
//% blockId=grove_tm1637_display_point block="%4Digit|turn|%point|colon point"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
point(point: boolean)
|
point(point: boolean)
|
||||||
{
|
{
|
||||||
@ -391,7 +391,7 @@ namespace grove {
|
|||||||
/**
|
/**
|
||||||
* Clear the display
|
* Clear the display
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_tm1637_display_clear block="%GroveModul|clear"
|
//% blockId=grove_tm1637_display_clear block="%4Digit|clear"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
clear()
|
clear()
|
||||||
{
|
{
|
||||||
@ -410,7 +410,7 @@ namespace grove {
|
|||||||
* @param xPin
|
* @param xPin
|
||||||
* @param yPin
|
* @param yPin
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_joystick_read block="%GroveModul|read position of joystick at|%xpin|and|%ypin"
|
//% blockId=grove_joystick_read block="%ThumbJoystick|read position of joystick at|%xpin|and|%ypin"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
read(xPin: AnalogPin, yPin: AnalogPin): number {
|
read(xPin: AnalogPin, yPin: AnalogPin): number {
|
||||||
let xdata = 0, ydata = 0, result = 0;
|
let xdata = 0, ydata = 0, result = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user