Create a New Main Source File

To add a new source file to the project:

  1. Right click on the project source folder and select New>avr-main.c.
  2. Under “Name and Location,” change the file name to main.c. Then click Finish.

The new file will open in an Editor window. By default the code will look like this.

/*
 * File:   main.c
 * Author: Microchip Technology Inc.
 *
 * Created on May 19, 2020, 1:37 PM
 */


#include <avr/io.h>

int main(void) {
    /* Replace with your application code */
    while (1) {
    }
}