Sammy1Am / Moppy2

The evolution of the Musical flOPPY controller
Other
309 stars 50 forks source link

ESP32 support #209

Open GoldenMelky opened 3 months ago

GoldenMelky commented 3 months ago

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

Sammy1Am commented 3 months ago

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.

DJthefirst commented 3 months ago

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.