Skip to content

Commit 1616c48

Browse files
committed
also update pio/pwm and picoboard/blinky system/hello_double_tap
1 parent 3bc1709 commit 1616c48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

picoboard/blinky/blinky.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pico/stdlib.h"
99
#include "hardware/gpio.h"
1010

11-
const uint LED_PIN = 25;
11+
const uint LED_PIN = PICO_DEFAULT_LED_PIN;
1212
const uint DOT_PERIOD_MS = 100;
1313

1414
const char *morse_letters[] = {

pio/pwm/pwm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main() {
3333
uint offset = pio_add_program(pio, &pwm_program);
3434
printf("Loaded program at %d\n", offset);
3535

36-
pwm_program_init(pio, sm, offset, 25);
36+
pwm_program_init(pio, sm, offset, PICO_DEFAULT_LED_PIN);
3737
pio_pwm_set_period(pio, sm, (1u << 16) - 1);
3838

3939
int level = 0;

system/hello_double_tap/hello_double_tap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This is a regular old LED blinking example, however it is linked with double_tap_usb_boot
1010
// so pressing reset quickly twice, will reset into USB bootloader
1111
int main() {
12-
const uint LED_PIN = 21;
12+
const uint LED_PIN = PICO_DEFAULT_LED_PIN;
1313
gpio_init(LED_PIN);
1414
gpio_set_dir(LED_PIN, GPIO_OUT);
1515
while (true) {

0 commit comments

Comments
 (0)