I think I just accidentally did something wrong, that actually turn out right, but I am not sure.
What I did was, I had hooked up my Nano to an USBasp programmer, and opened an example LED blinker stretch, and accidentally pressed the burn boot-loader button. Now my nano’s LED is flashing. Here are few of my question:
1, Did I just erase the boot-loader of my nano, and replaced it with this LED blinker sketch? (My nano still works, meaning I can still upload sketch the same old way. is that meant that the bootloader has not been erased? )
2, is this the correct way to upload my sketch to an IC without the boot-loader, ie using “burn boot-loader”, instead of the normal “upload” button?
3, I am planning to make a new board with the same ic as the nano which runs with its internal 8mhz crystal, but there isn’t a board option in the menu, what do I need to do?
4, I have been playing with a digispark that runs on only one attiny85 ic, and It works with USB, and I want to make this function available for my new board that is going to run on an atmeage328 ic, what do I need to do?
LED code
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
The output txt file is very interesting
output.txt (13.5 KB)