Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/playground/blocks/hardware/block_arduino.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Entry.Arduino.setLanguage = function () {
en: {
template: {
arduino_get_number_sensor_value: 'analog %1 value ',
arduino_get_digital_value: 'Digital %1 value ',
arduino_get_digital_value: 'digital %1 value ',
arduino_toggle_led: '%2 digital %1 pin %3',
arduino_toggle_pwm: 'Set digital %1 pin to %2 %3',
arduino_convert_scale: 'mapped value of analog %1 that %2 ~ %3 to %4 ~ %5',
Expand Down
33 changes: 25 additions & 8 deletions src/playground/blocks/hardware/block_arduino_ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,43 +73,60 @@ Entry.ArduinoExt.setLanguage = function () {
return {
ko: {
template: {
arduino_ext_get_analog_value: '아날로그 %1 번 센서값',
arduino_ext_get_analog_value_map: '%1 의 범위를 %2 ~ %3 에서 %4 ~ %5 로 바꾼값',
arduino_ext_get_analog_value: '아날로그 %1 번 값',
arduino_ext_get_analog_value_map:
'%1 의 범위를 %2 ~ %3 에서 %4 ~ %5 (으)로 바꾼 값',
arduino_ext_get_ultrasonic_value:
'디지털 %1 번 핀을 Trig에 디지털 %2 핀을 Echo에 연결한 초음파 센서 값',
arduino_ext_toggle_led: '디지털 %1 번 핀 %2 %3',
arduino_ext_digital_pwm: '디지털 %1 번 핀을 %2 (으)로 정하기 %3',
arduino_ext_set_tone: '디지털 %1 번 핀의 버저를 %2 %3 음으로 %4 초 울리기 %5',
arduino_ext_set_servo: '디지털 %1 번 핀의 서보모터를 %2 도로 정하기 %3',
arduino_ext_get_digital: '디지털 %1 번 센서값',
arduino_ext_get_digital: '디지털 %1 번 ',
},
Helper: {
arduino_ext_get_analog_value: '선택한 핀의 아날로그 값입니다. (0 ~ 1023)',
arduino_ext_get_analog_value_map:
'선택한 핀의 아날로그 값을 입력한 범위로 바꾼 값입니다.',
arduino_ext_get_ultrasonic_value: '선택한 핀에 연결한 초음파 센서 값입니다.',
arduino_ext_set_servo: '선택한 핀에 연결한 서보모터의 각도를 정합니다.',
arduino_ext_set_tone:
'선택한 핀에 연결한 버저를 선택한 음으로 입력한 시간 동안 울립니다.',
arduino_ext_get_digital:
'선택한 핀의 디지털 값입니다. 핀이 켜진 경우 "참"으로 판단합니다.',
arduino_ext_toggle_led: '선택한 핀을 켜거나 끕니다.',
arduino_ext_digital_pwm: '선택한 핀을 입력한 값으로 정합니다.',
},
},
en: {
template: {
arduino_ext_get_analog_value: 'Analog %1 Sensor value',
arduino_ext_get_analog_value_map: 'Map Value %1 %2 ~ %3 to %4 ~ %5',
arduino_ext_get_analog_value: 'analog %1 value',
arduino_ext_get_analog_value_map:
'mapped value of analog %1 that %2 ~ %3 to %4 ~ %5',
arduino_ext_get_ultrasonic_value:
'ultrasonic sensor value that connects pin %1 to Trig and pin %2 to Echo',
arduino_ext_toggle_led: 'Digital %1 Pin %2 %3',
arduino_ext_digital_pwm: 'Digital %1 Pin %2 %3',
arduino_ext_toggle_led: '%2 digital %1 pin %3',
arduino_ext_digital_pwm: 'Set digital %1 pin to %2 %3',
arduino_ext_set_tone:
'Ring buzzer of pin %1 on note %2 octave %3 for %4 second(s) %5',
arduino_ext_set_servo: 'Set servo motor of pin %1 to %2 degree %3',
arduino_ext_get_digital: 'Digital %1 Sensor value',
arduino_ext_get_digital: 'digital %1 value',
},
Helper: {
arduino_ext_get_analog_value:
'Reports the value that analog signal of the selected pin. (0 ~ 1023)',
arduino_ext_get_analog_value_map:
'Reports the value that analog signal of the selected pin mapping original range onto input range.',
arduino_ext_get_ultrasonic_value:
'Reports the value of ultrasonic sensor that connects pin.',
arduino_ext_set_servo:
'Set the degree of servo motor that connected with selected pin.',
arduino_ext_set_tone:
'Rings buzzer connected with selected pin during input seconds.',
arduino_ext_get_digital:
'Checks whether the selected pin is turned on. If it turned on, it is judged as "True".',
arduino_ext_toggle_led: 'Turn on or turn off the selected pin.',
arduino_ext_digital_pwm: 'Set the selected pin to input value.',
},
},
};
Expand Down
4 changes: 3 additions & 1 deletion src/playground/blocks/hardware/block_arduino_nano.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Entry.ArduinoNano.setLanguage = function () {
arduino_nano_set_tone:
'Ring buzzer of pin %1 on note %2 octave %3 for %4 second(s) %5',
arduino_nano_set_servo: 'Set servo motor of pin %1 to %2 degree %3',
arduino_nano_get_digital: 'Digital %1 value',
arduino_nano_get_digital: 'digital %1 value',
arduino_nano_get_ultrasonic_value:
'Reports the value of ultrasonic sensor that connects pin.',
},
Expand All @@ -130,6 +130,8 @@ Entry.ArduinoNano.setLanguage = function () {
'Set the degree of servo motor that connected with selected pin.',
arduino_nano_set_tone:
'Rings buzzer connected with selected pin during input seconds.',
arduino_nano_get_ultrasonic_value:
'Reports the value of ultrasonic sensor that connects pin.',
},
},
};
Expand Down