lathoub / Arduino-AppleMIDI-Library

Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
Other
306 stars 66 forks source link

update #81

Closed rockomatthews closed 4 years ago

rockomatthews commented 4 years ago

What are some reasons I should or shouldn't update to this build? Sounds awesome. I'm using an esp-32 though and Mojave... I've stuck with the build right before the alpha because I had trouble figuring out how to make it work with an esp-32. Now even, it looks like esp-32's require extra helpers? Is that a good sign or bad? I have no idea. I am not the sharpest coder. Here's my code: finally. god. see? took me 10 minutes to figure this out

lathoub commented 4 years ago

Hi @rockomatthews, I would update right away, here is why:

Migration is easy, take any of the examples and see what changed (also, I have a wiki page on it)

As for the ESP32, excellent choice! The ESP32 examples I have is for the Ethernet wired hardware (eg wESP32), that used a Helper. Your code of the ESP32 is just fine.

Looking at your code, you should consider using a Library for the buttons, I like this one: Bounce2 - your code has 4 repeating sections (making to code harder to read, error prone and use more memory).

Also, add a separate helper file to hide your ssid and password :-)

lathoub commented 4 years ago

Pls close this issue if you are happy with the answer