MorganS:
Theoretically the code will be the same. But you will always find that it is.easier to move some pins around. Just to make the wiring look neater.
That is why you always have your pins defined at the top of the codenand you don't have to search for every ocurrence of digitalWrite(2...
Do you know how i can upload the code to this board as arduino IDE dosen't seem to recognize it.
Paul__B:
Neither of those references explicitly state that it has a bootloader installed.
Does the indicator LED continue to blink when it is powered? Did it when you first obtained it?
I don't recall but according to me it does continue to blink. I tried uploading a simple led blink code by selecting the board as uno, the code was uploaded but the output wasn't as desired.
So as it seems, the board does have a bootloader and the "blink" test program but you have been unable to get the bootloader to answer to your IDE, so the "blink" test program is still running unchanged.
However you then say
abc53:
by selecting the board as UNO, the code was uploaded but the output wasn't as desired.
Do you mean to say the IDE gave you the blue "Done Uploading" response or not!
Paul__B:
So as it seems, the board does have a bootloader and the "blink" test program but you have been unable to get the bootloader to answer to your IDE, so the "blink" test program is still running unchanged.
However you then sayDo you mean to say the IDE gave you the blue "Done Uploading" response or not!
Yes the IDE did gave Done Uploading response. So if the board has a bootloader, How do I upload the code ?
Paul__B:
OK now, what code did you upload; what does it do and what is it supposed to do?
A simple LED Blink Code. I uploaded it twice separately, first with board selected as UNO and the next time board selected as Mega.
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}