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.
Example:
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
void setup(){
Serial.begin(115200);
Serial.println(“Car Init”);
pinMode(enableRight, OUTPUT); <-- Begin Init Car
pinMode(enableLeft, OUTPUT);
pinMode(rightMotor1, OUTPUT);
pinMode(rightMotor2, OUTPUT);
pinMode(leftMotor1, OUTPUT);
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
Miguel