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.
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.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.