This thread is starting to remind of a thread from a couple weeks ago where someone started acting rude when the answers were not to their liking. If techx responds that I am clogging the internet with this post, we will have a winner!

brianfast

dcb is rude. anyone telling someone to google it for a question that is not obvious is rude. I hate people like dcb. Anyway I assume that I need to use the ICSP to program and that is my problem as I am using USB. So this thread is no longer needed.

dcb

I don't get it techx, I've been trying to help you and figure out where you are coming from and what you are asking. But instead of saying "thank you", you act like I owe you something and should read your mind and type out detailed instructions which you still might not understand.

Google is your friend, search for arduino and c++ or avrstudio or whatever and read.

I appreciate you are on a frustrating part of the learning curve, but there is no cause for personal attacks, let alone hate.

int main(void){ init(); // Part of arduino environment setup(); // Provided by you in the sketch for (;;) loop(); // Provided by you in the sketch return 0;}This isn't really any different that the code that a more traditional compiler environment executes in your program before it calls main() (usually something like _start(), contained in the crt0 library); it's just a convenience for embedded applications (for instance, you no longer have to explain to people what should happen when the program is "done"; it's clear that it just keeps calling loop() forever.)