Open brennansang opened 4 years ago
PlatformIO uses the 1.1.1 version, which doesn't have MIDIAddress
yet.
You could force PlatformIO to use the master version, or you can use the version-specific documentation and examples here:
https://tttapa.github.io/Control-Surface-doc/index.html
The examples should be included with the library as well.
Well, that would explain it. Is there a downside to forcing PlatformIO to use the master version?
Thanks for your time.
Not really, master should work at all times, but the API might not be 100% stable.
I simply don't have much time at the moment to prepare an "official" release.
How do you force PIO to use the latest? i used the below and 1.1.1 is the only one that installs. platformio lib -g install https://github.com/tttapa/Control-Surface/archive/master.zip
I don't use PIO. Last time I needed it, I simply searched for PIO's Control-Surface folder and manually replaced it by the master version.
When PlatformIO adds Control-Surface it adds an entry like tttapa/Control Surface@^1.2.0-4
to platformio.ini
.
What worked for me was changing that declaration to pull directly from the master branch in the git repo. You probably don't need to add the master
tag, but I like that it makes it explicit. My platformio.ini
for a current project looks a bit like this:
[env:d1]
platform = espressif8266
board = d1
framework = arduino
lib_deps =
#tttapa/Control Surface@^1.2.0-4
https://github.com/tttapa/Control-Surface.git#master
lathoub/AppleMIDI@^3.1.2
lib_ignore = MIDIUSB
Hey there, Thanks so much for your work on this, I'm incredibly excited to work with your library. Unfortunately, I'm running into an issue when compiling with Platformio while using a Teensy 3.6.
To try and isolate the issue, I started a new project using just the Send Midi Notes example — but I end up getting the same error.
The error that I can't seem to get past is:
src/main.cpp:13:7: error: 'MIDIAddress' does not name a type
Everything compiles fine using Teensyduino, but compiling fails using Atom/Platformio. Any idea what I'm missing?
Thanks again for your time,
Brennan
Here's the example code I'm using.
Here's my platformio.ini