Skip to content

Commit

Permalink
samples: drivers: led: pwm: Add rpi_pico2 board
Browse files Browse the repository at this point in the history
The RP2350's PWM peripheral is largely unchanged from the RP2040's, but
the higher clock frequency means the long blink delay must be lower.

Signed-off-by: Andrew Featherstone <[email protected]>
  • Loading branch information
ajf58 committed Nov 4, 2024
1 parent 12c7ca7 commit 38a5657
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/drivers/led/pwm/boards/rpi_pico2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_BLINK_DELAY_SHORT=20
CONFIG_BLINK_DELAY_LONG=50
CONFIG_FADE_DELAY=15
8 changes: 8 additions & 0 deletions samples/drivers/led/pwm/boards/rpi_pico2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Andrew Featherstone <[email protected]>
*/

/* Pico 2 is compatible with the Pico 1, so reuse. */
#include "rpi_pico.overlay"

0 comments on commit 38a5657

Please sign in to comment.