Added variable recoding / tone support / Dutch translation#64
Added variable recoding / tone support / Dutch translation#64sdmeijer wants to merge 17 commits intoedutec:masterfrom
Conversation
Variables outside of the loops (i.e. for holding pin numbers) are now declared and assigned in the head (before setup()). Also type detection is build in (only int and char) for variables outside of the loops. Assigning an analog pin number to a variable results in a int declaration of the variable (as necessary by Arduino). Changed the regex for the pin number detection (digitalRead, digitalWrite, servo), so that variables can be used.
|
I've also changed this: Variables outside of the loops (i.e. for holding pin numbers) are now declared and assigned in the head (before setup()). Changed the regex for the pin number detection (digitalRead, digitalWrite, servo), so that variables can be used. |
…fine a melody (these blocks needs to stay OUTSIDE of the loop(). In the Arduino category is a new block to play the defined melody). + Some improvements on variable recoding + Added Dutch language to installer + Updated Dutch language
…ore the previous commit).
|
These alterations work in S4A-mode, not tested with Firmata (I'm sure the tone capabilties won't work). |
Added some translations
…sketch (only in S4A-mode). + Put all the new blocks in a check to see if it's in S4A-mode. Only then these blocks are shown.
- Disabled code that moved blocks to setup(), because it was messing up the order of the commands
|
@sdmeijer, I can't pull this yet as there are some things I believe you added to this pull request by mistake (like Namely: Dutch translation, changes to the Arduino preprocessor, and note blocks (not sure what to do with those, as Firmata doesn't expose these functions and our policy is that the Arduino "dumb" mode should be "dumber" than the dynamic one). Thanks a lot! |
|
Hi @bromagosa, |
Added new blocks and features Now capable of doing what I want. ToDo: - nested loops - remove extra spacing before int - auto start in Arduino-mode - upload to Arduino???
| }; | ||
|
|
||
| // Add attributes to original SnapTranslator.dict.nl | ||
| for (var attrname in s4aTempDict) { SnapTranslator.dict.nl[attrname] = s4aTempDict[attrname]; } |
There was a problem hiding this comment.
So sorry! Since I moved Snap4Arduino into a new repo I had completely forgotten about these pull requests!
I've added Dutch translations for Snap4Arduino.