2.1 The while() Loop and Toggle Function

Writing a bit in PORTF.OUTTGL to '1' will toggle that bit. For PF5:

PORTF.OUTTGL = PIN5_bm; // toggle PF5

To continually toggle the pin, and flash the LED, the while(1) loop is used.