enableDebugPorts()

Used to enable the JTAG and Serial Wire debugging ports.

Library Documentation

void enableDebugPorts(void)

Enable the JTAG and Serial Wire (SW) debug ports.

After you call this function, the JTAG and SW debug pins will no longer be usable as GPIOs.

See:disableDebugPorts()

Example

void setup() {
    enableDebugPorts();
    // Now you can debug using JTAG and SW-Debug
}

void loop() {
}