Skip to content

Commit

Permalink
translation es
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang-tang committed Dec 25, 2024
1 parent 1e41381 commit acb1fc0
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ The Creative Robotics Kit for micro:bit is a robot platform based on the micro:b

The platform's IO expansion board provides 10 digital/analog 3-pin interfaces and 3 I2C interfaces, enabling easy expansion and control of a wide range of devices. The expansion board features a built-in dual motor driver, eliminating the need to use additional pins. Furthermore, the expansion board exposes the micro:bit edge connector pins (0, 1, 2, 3V, GND), offering developers more interface options.

[]()
[product page](https://www.dfrobot.com/product-367.html)

[educational materials and tutorials](https://learn.dfrobot.com/)

[Module Document Address]()

## Basic usage
1. Set the direction and speed of motors connected to M1 and M2 ports.
Expand Down
23 changes: 23 additions & 0 deletions _locales/es/robotics-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"robotics": "",
"robotics.motorRun": "设置M1,M2电机的转速,可以分别设置,也可以⼀起设置。",
"robotics.motorStop": "停⽌M1,M2电机,可分别设置,也可以⼀起设置。",
"robotics.servoRun180": "设置180°舵机的⻆度",
"robotics.servoRun360": "设置360°舵机的速度",
"robotics.readUltrasonicData": "读取超声波传感器的距离,单位厘⽶",
"robotics.readLineTrackingData": "读取巡线传感器的状态(数字量),检测到⿊线输出 0,检测到⽩线输出 1",
"robotics.readMoistureData": "读取⼟壤湿度的值(模拟量),范围0~1023。",
"robotics.readDht11Data": "读取DHT11传感器的温度值和湿度值。温度值有两个单位,分别是℃和℉,湿度的单位是'%'",
"robotics.readLightData": "读取环境光线传感器的值(模拟量)",
"robotics.readInfraredData": "⼈体红外传感器(数字量)",
"robotics.ws2812Init": "设置RGB的灯总数",
"robotics.ws2812SBrightness": "设置RGB灯的亮度值",
"robotics.ws2812LedRange": "起始灯号到结束灯号",
"robotics.ws2812SetIndexColor": "设置指定灯号的显示颜色",
"robotics.ws2812ShowColor": "设置所有灯号的显示颜色",
"robotics.ws2812Off": "设置RGB灯全部熄灭",
"robotics.ws2812Shift": "移动 LED 的颜⾊序列,移动单位⾃定义设置。⽤于后⾯制作流⽔灯。",
"robotics.ws2812Rotate": "循环移动 LED 的颜⾊序列,移动单位⾃定义设置。",
"robotics.ws2812Rainbow": "设置RGB灯显⽰渐变颜⾊",
"robotics.getWs2812Color": "通过三原⾊设置RGB灯的颜⾊"
}
34 changes: 34 additions & 0 deletions _locales/es/robotics-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"robotics.motorRun|block": "Motor %motor dir %dir velocidad %speed",
"robotics.motorStop|block": "Parar motor %motor",
"robotics.servoRun180|block": "fijar pin %pin servo a %degree=protractorPicker grados",
"robotics.servoRun360|block": "pin $pin rotar servo $dir a $speed \\% velocidad",
"robotics.readUltrasonicData|block": "Obtener distancia del sensor ultrasónico del pin %pin en (cm).",
"robotics.readLineTrackingData|block": "Leer estado del seguidor de línea %pin",
"robotics.readMoistureData|block": "Leer pin %pin sensor de humedad del suelo",
"robotics.readDht11Data|block": "Leer pin %pin %type",
"robotics.readLightData|block": "Leer pin %pin Senosr luz ambiente",
"robotics.readInfraredData|block": "Leer pin %pin Sensor digital de movimiento infrarrojo",
"robotics.ws2812Init|block": "pin $pin $num RGB LEDs",
"robotics.ws2812SBrightness|block": "Brillo RGB %brightness",
"robotics.ws2812LedRange|block": "leds del %from al %to",
"robotics.ws2812SetIndexColor|block": "RGB %index mostrar color %color",
"robotics.ws2812ShowColor|block": "mostrar color %color",
"robotics.ws2812Off|block": "borrar todos los LED RGB",
"robotics.ws2812Shift|block": "desplazar píxeles en %offset",
"robotics.ws2812Rotate|block": "rotar píxeles en %offset",
"robotics.ws2812Rainbow|block": "RGB %start to %end muesta el color degradado de %startHue a %endHue",
"robotics.getWs2812Color|block": "rojo %red verde %green azul %blue",

"robotics.MotorType.All|block": "All",
"robotics.MotorDirection.CW|block": "CW",
"robotics.MotorDirection.CCW|block": "CCW",
"robotics.DataType.TemperatureC|block": "temperatura(℃)",
"robotics.DataType.TemperatureF|block": "temperatura(ºF)",
"robotics.DataType.Humidity|block": "humedad(%RH)",
"robotics|block": "Robotics Kit",
"{id:category}robotics": "Robotics Kit",
"{id:group}Motor": "Motor",
"{id:group}Servo": "Servo",
"{id:group}Sensor": "Transductor"
}
2 changes: 1 addition & 1 deletion _locales/zh-cn/robotics-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"robotics.readDht11Data|block": "读取引脚 %pin %type",
"robotics.readLightData|block": "读取引脚 %pin 环境光",
"robotics.readInfraredData|block": "读取引脚 %pin ⼈体红外运动传感器",
"robotics.ws2812Init|block": "设置引脚 %pin 灯总数 %num",
"robotics.ws2812Init|block": "设置引脚 $pin 灯总数 $num",
"robotics.ws2812SBrightness|block": "灯带亮度为 %brightness",
"robotics.ws2812LedRange|block": "灯号从 %from 到 %to",
"robotics.ws2812SetIndexColor|block": "设置 灯号%index 显示颜色%color",
Expand Down
2 changes: 2 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"robotics.ts",
"_locales/zh-cn/robotics-strings.json",
"_locales/zh-cn/robotics-jsdoc-strings.json",
"_locales/es/robotics-strings.json",
"_locales/es/robotics-jsdoc-strings.json",
"i2c.cpp",
"enums.d.ts",
"shims.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion robotics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ namespace robotics {
* @param pin to pin, eg: CustomAllPin.P0
* @param num to num, eg: 3
*/
//% block="pin %pin %num RGB LEDs"
//% block="pin $pin $num RGB LEDs"
//% group="RGB"
//% num.min=1 num.max=7
//% weight=55
Expand Down

0 comments on commit acb1fc0

Please sign in to comment.