Skip to content

Commit cfee94a

Browse files
authored
Merge pull request #1077 from pimoroni/ci/rp2350
CI: Add Pico 2 and Pico 2 W builds.
2 parents dc93a19 + db65c4b commit cfee94a

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
board: pico
2121
- name: Pico W
2222
board: pico_w
23+
- name: Pico 2
24+
board: pico2
25+
- name: Pico 2 W
26+
board: pico2_w
2327

2428
env:
2529
PICO_SDK_PATH: $GITHUB_WORKSPACE/pico-sdk

examples/breakout_encoder_wheel/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
add_subdirectory(buttons)
22
add_subdirectory(chase_game)
3+
if (TARGET hardware_rtc)
34
add_subdirectory(clock)
5+
else()
6+
message("Skipping breakout_encoder_wheel/clock example as hardware_rtc is unavailable on this platform")
7+
endif()
48
add_subdirectory(colour_picker)
59
add_subdirectory(encoder)
610
add_subdirectory(gpio_pwm)

examples/inky_frame/inky_frame7_test.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ add_executable(
66
)
77

88
# Pull in pico libraries that we need
9-
target_link_libraries(${OUTPUT_NAME} pico_stdlib psram_display inky73 inky_frame hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
9+
target_link_libraries(${OUTPUT_NAME} pico_stdlib psram_display inky73 inky_frame hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
1010

1111
pico_enable_stdio_usb(${OUTPUT_NAME} 0)
1212

examples/inky_frame/inky_frame_day_planner.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_executable(
55
)
66

77
# Pull in pico libraries that we need
8-
target_link_libraries(inky_frame_day_planner pico_stdlib inky_frame hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
8+
target_link_libraries(inky_frame_day_planner pico_stdlib inky_frame hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
99

1010
pico_enable_stdio_usb(inky_frame_day_planner 1)
1111

@@ -19,7 +19,7 @@ add_executable(
1919
)
2020

2121
# Pull in pico libraries that we need
22-
target_link_libraries(inky_frame_7_day_planner pico_stdlib inky_frame_7 hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
22+
target_link_libraries(inky_frame_7_day_planner pico_stdlib inky_frame_7 hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
2323

2424
pico_enable_stdio_usb(inky_frame_7_day_planner 1)
2525

examples/inky_frame/inky_frame_jpeg_image.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_executable(
44
)
55

66
# Pull in pico libraries that we need
7-
target_link_libraries(inky_frame_jpeg_image pico_stdlib jpegdec inky_frame fatfs hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
7+
target_link_libraries(inky_frame_jpeg_image pico_stdlib jpegdec inky_frame fatfs hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
88

99
pico_enable_stdio_usb(inky_frame_jpeg_image 1)
1010

@@ -18,7 +18,7 @@ add_executable(
1818
)
1919

2020
# Pull in pico libraries that we need
21-
target_link_libraries(inky_frame_7_jpeg_image pico_stdlib jpegdec inky_frame_7 fatfs hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
21+
target_link_libraries(inky_frame_7_jpeg_image pico_stdlib jpegdec inky_frame_7 fatfs hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
2222

2323
pico_enable_stdio_usb(inky_frame_7_jpeg_image 1)
2424

examples/inky_frame/inky_frame_sleepy_head.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ add_executable(
66
)
77

88
# Pull in pico libraries that we need
9-
target_link_libraries(${OUTPUT_NAME} pico_stdlib inky_frame hardware_pwm hardware_spi hardware_i2c hardware_rtc fatfs sdcard pico_graphics)
9+
target_link_libraries(${OUTPUT_NAME} pico_stdlib inky_frame hardware_pwm hardware_spi hardware_i2c fatfs sdcard pico_graphics)
1010

1111
pico_enable_stdio_usb(${OUTPUT_NAME} 1)
1212

0 commit comments

Comments
 (0)