Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 support #209

Open
GoldenMelky opened this issue Mar 25, 2024 · 2 comments
Open

ESP32 support #209

GoldenMelky opened this issue Mar 25, 2024 · 2 comments

Comments

@GoldenMelky
Copy link

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
Copy link
Owner

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
Copy link

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.

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

No branches or pull requests

3 participants