Skip to content

Commit

Permalink
PWM block fixed, again.
Browse files Browse the repository at this point in the history
  • Loading branch information
bromagosa committed Jul 12, 2016
1 parent 4994586 commit f522d26
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions snap/s4a/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ SpriteMorph.prototype.initArduinoBlocks = function () {
only: SpriteMorph,
type: 'command',
category: 'arduino',
spec: 'set pin %pwmPin to %n value',
defaults: [128],
spec: 'set pin %pwmPin to value %n',
defaults: [null, 128],
translatable: true
};

Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'posar el servo %servoPin a %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'posar el pin analògic %pwmPin al valor %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'nastav servo %servoPin na %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'nastav PWM pin %pwmPin na %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-de.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'Setze Servo %servoPin auf %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'Setze Pin %pwmPin auf %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'fijar servo %servoPin en %servoValue',

'sset pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'fijar pin %pwmPin al valor %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-et.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'määra servoviigule %servoPin väärtus %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'määra viigule %pwmPin väärtus %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-he.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

'set digital pin %digitalPin to %b': '%b -ל %digitalPin דיגיטליית רגל שנה',
'set servo %servoPin to %servoValue': '%servoValue -ל %servoPin ברגל מנוע הבא',
'sset pin %pwmPin to %n value': '%n -ל %pwmPin ברגל PWM קבע',
'set pin %pwmPin to value %n': '%n -ל %pwmPin ברגל PWM קבע',
'Connecting board at port\n': 'חבר לכניסה\n',
'An Arduino board has been connected. Happy prototyping!': 'ארדוינו חובר בהצלחה!',

Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'imposta servo %servoPin a %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'imposta il pin %pwmPin a %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'zet servo %servoPin op %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'zet pin %pwmPin op %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'coloca o servo %servoPin %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'coloca no pino (PWM) %pwmPin o valor %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-pt_BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'posicione o servo %servoPin em %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'coloque no pino %pwmPin o valor %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'изменить статус разъема серво %servoPin нa %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'изменить статус разъема PWM %pwmPin на %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-uk.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'змінити статус роз\u2019єму серво %servoPin нa %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'змінити статус роз\u2019єму PWM %pwmPin на %n',

'Connecting board at port\n':
Expand Down
2 changes: 1 addition & 1 deletion snap/s4a/s4a-lang-zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ s4aTempDict = {
'set servo %servoPin to %servoValue':
'设置伺服针脚 %servoPin 为 %servoValue',

'set pin %pwmPin to %n value':
'set pin %pwmPin to value %n':
'设置PWM %pwmPin 为 %n',

'Connecting board at port\n':
Expand Down

2 comments on commit f522d26

@jguille2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry! I forgot setting %pwmPin default value to null :(

The order of value word was a conscious action... my poor English. I think in '%n degrees, steps, sec...' and I gather '%n value'

Thanks!

@bromagosa
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! Thanks for all the contributions actually! :)

Please sign in to comment.