Skip to content

RP2350 (Pico 2) support and fix BPM-too-slow problem on RP2040/RP2350#64

Open
doctea wants to merge 4 commits intomidilab:mainfrom
doctea:main
Open

RP2350 (Pico 2) support and fix BPM-too-slow problem on RP2040/RP2350#64
doctea wants to merge 4 commits intomidilab:mainfrom
doctea:main

Conversation

@doctea
Copy link
Copy Markdown
Contributor

@doctea doctea commented Feb 11, 2026

Very simple patch, its the same as for RP2040, just needed to update the #ifdef check to check for ARDUINO_ARCH_RP2350 in addition to ARDUINO_ARCH_RP2040 :)

@doctea doctea changed the title RP2350 (Pico 2) support RP2350 (Pico 2) support and fix BPM-too-slow problem on RP2040/RP2350 Apr 15, 2026
@doctea
Copy link
Copy Markdown
Contributor Author

doctea commented Apr 15, 2026

This also now solves long-standing problem with BPM being a little too slow. Should now be perfectly accurate!

Problem was needing to cast interval from uint32_t to int32_t so that the correct negative interval is passed to add_repeating_timer_us (because "the repeat delay in microseconds; if >0 then this is the delay between one callback ending and the next starting; if <0 then this is the negative of the time between the starts of the callbacks.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant