Moppy2 icon indicating copy to clipboard operation
Moppy2 copied to clipboard

ESP32 support

Open GoldenMelky opened this issue 1 year ago • 2 comments

it's the first time that i use platformio, so i don't really know how to use it. I changed the env and board to esp32dev, platform to espressif32 and added two libraries, but when i compile it i get this error 'TIMER_RESOLUTION' was not declared in this scope does someone alredy tried to use Moppy with an ESP32?

(sorry for bad english) i'm using linux btw.

immagine

GoldenMelky avatar Mar 25 '24 16:03 GoldenMelky

Hrm, this might be related to a recent change merged to add ESP32 support (but apparently accidentally removing it, haha). Try replacing these lines here with just the following line: #define TIMER_RESOLUTION 40

That should ensure that it's defined.

Sammy1Am avatar Mar 26 '24 17:03 Sammy1Am

Once you get it working on Esp32 try lowering the Resolution value. I am using different software but can get down to around 10 before it crashes. The lower the value to more accurate the notes and 4x is a major improvement for higher notes.

DJthefirst avatar Mar 26 '24 21:03 DJthefirst