GETTING CODE

HI,

When your start your ARDUINO software you'll get this.

void setup() {

// put your setup code here, to run once:

}

void loop() {

// put your main code here, to run repeatedly:

}

And then you put some code in... -- like this:

void setup() { pinMode(13, OUTPUT); }

You compile and load into the Arduino.

The questions are:

1: Is there a way (option ?) in the ARDUINO SOFTWARE /shell that allows you to get the compiled source and save it as a file ?

2: Is it possible - in some way - if 1 = NO ?

KRIS

welcome to forum

Use code tags to paste your code quote to send error msgs link quote to share the link attachment for adding your file

int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);  
Serial.begin(9600);   
}

// the loop routine runs over and over again forever:
void loop() {
Serial.println("welcome");
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

can you compile simple code. share me screen shot of error you got

snestrup2000: Is there a way (option ?) in the ARDUINO SOFTWARE /shell that allows you to get the compiled source and save it as a file ?

The source code is compiled into a "HEX file" that is uploaded to the controller.

If you enable File->Preferences->Show verbose output during [ ] compilation you'd be able to see the path and file name of the generated .hex file.

You then could copy and keep the .hex file for further uploads to the same type of controller for which the file was compiled (not supported by the IDE, must use seperate upload-tool).