...forgot to mention, that in the code some methods are exactly the same for all blocks... this allows to put them 'back into the board logic' rather then making 'super classes' and de-oo the code a bit - for a higher common good. Initially, I expected more 'short cuts' for the individual block types, but it turned out to be pretty uniform...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
...forgot to mention, that in the code some methods are exactly the same for all blocks... this allows to put them 'back into the board logic' rather then making 'super classes' and de-oo the code a bit - for a higher common good. Initially, I expected more 'short cuts' for the individual block types, but it turned out to be pretty uniform...