Skip to content

Commit 63243b0

Browse files
committed
Fix hello_gpio_irq for pico 2
1 parent 3a159a4 commit 63243b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gpio/hello_gpio_irq/hello_gpio_irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ int main() {
2323
stdio_init_all();
2424

2525
printf("Hello GPIO IRQ\n");
26+
gpio_init(2);
2627
gpio_set_irq_enabled_with_callback(2, GPIO_IRQ_EDGE_RISE | GPIO_IRQ_EDGE_FALL, true, &gpio_callback);
2728

2829
// Wait forever

0 commit comments

Comments
 (0)