Hi, Ia have created an Extension to be used with an arduino car. I can install the extension and it generates code properly but if I mix my blocks with arduino ones the code of the arduino block is always inserted before mine no matter where I put my block.
Add “Arduino Program” from Arduino extension
Add “Init Car” block from my extension
Add Serial.Print(“Car initilized”) from Arduino extension.
And the resulting Arduino code is
pinMode(enableRight, OUTPUT); <-- Begin Init Car
pinMode(leftMotor2, OUTPUT); <— End Init Car
If I add more blocks from different extensions mBlock seems to order my extension code lines together,not in the order I added the blocks