midilab / uClock

A tight BPM clock generator for Arduino and PlatformIO using hardware timer interruption. AVR, Teensy, STM32xx, ESP32 and RP2040 support
https://midilab.co/umodular
MIT License
153 stars 19 forks source link

uClock does not compile with Raspberry Pi Pico / RP2040 #38

Closed underwoodblog closed 2 months ago

underwoodblog commented 2 months ago

using latest arduino-pico core: https://github.com/earlephilhower/arduino-pico

G:\PortableApps\arduino\portable\sketchbook\libraries\uClock\src\uClock.cpp: In function 'void uclockInitTimer()': G:\PortableApps\arduino\portable\sketchbook\libraries\uClock\src\uClock.cpp:70:5: error: 'initTimer' was not declared in this scope 70 | initTimer(uClock.bpmToMicroSeconds(120.00)); | ^~~~~ G:\PortableApps\arduino\portable\sketchbook\libraries\uClock\src\uClock.cpp: In function 'void setTimerTempo(float)': G:\PortableApps\arduino\portable\sketchbook\libraries\uClock\src\uClock.cpp:75:5: error: 'setTimer' was not declared in this scope; did you mean 'setitimer'? 75 | setTimer(uClock.bpmToMicroSeconds(bpm)); | ^~~~ | setitimer

midilab commented 2 months ago

The rp2040 support is not released officialy yet(arduino and platformio versions),

Only on latest main branch version you will find the RP2040 support. To use it you need to download or clone the main repository manually and set as your library to use instead of the one installed via arduino or platofrmio.

Im planning to do a release this week(so you can updated via arduino or platformio), dont know when, but soon, just need to review code and make some more tests.