Results 36 comments of Benny

Hmm, I have been discussing ways to have pins as variables. This is not yet in ardublockly. My version has it but not as define. You put an UNO component...

@mgreenhough I have a fork which has blocks for this. Not changed in the default GUI though, but I rolled out another GUI that has those blocks expressed: https://blokkencode.ingegno.be/index_en.html

my fork can do this, see Example--> blink on https://blokkencode.ingegno.be/index_en.html Actually doing a define would be too advanced in my opinion, there comes a moment one should shift from GUI...

Save following as BlinkNoDelay.xml to upload to Blockly4Arduino branch of ardublockly. [BlinkNoDelay.txt](https://github.com/carlosperate/ardublockly/files/182173/BlinkNoDelay.txt)

I'm having a problem using the compressed js, addCompatibleTypes throws an error. Does not happen using uncompressed. Seems to be with the circular references, but I don't see the error...

It seems in type.js `compatibleTypeArray[i].constructor.name !== 'BlocklyType'` and `|| compatibleType.constructor.name !== 'BlocklyType'` do not work compressed because the name has been compressed and is no longer BlocklyType

Ok, I have been testing changing my define blocks into setting variable with the cast block as you want to use as paradigm. To assign pins in digitalwrite, I use...

A possible 'clean' solution: 1/ a new block like the arduino block 'Arduino run first ... Arduino loop forever', but now with a define part also: block 'Arduino define up...

The automatic way would be to write a pinMode where a variable is used after variable assignment. However, doing that, I assume you can have things like in setup already...

Possible solution: ``` } else { // Pick an existing name from the workspace if needed and any exists var instanceList = Blockly.Instances.allInstancesOf(this.instanceType_, this.sourceBlock_.workspace); if (instanceList.indexOf(this.getValue()) == -1) { var...