13.8.1.2.1 Code
Copy-paste the following code to your user application:
while
(
true
) {
bool
pin_state = port_pin_get_input_level(BUTTON_0_PIN);
port_pin_set_output_level(LED_0_PIN, !pin_state);
}