Moving from Arduino IDE to PlatformIO IDE

See https://github.com/maxgerhardt/etherkey. You just have to take care to also declare any used global variables that are hsared between the two .ino files in one of these header files.

Hi @maxgerhardt,
Thank you so much for your speedy and helpful response, that’s amazing! Would putting a comment along the lines of ‘adapted to work with PlatformIO’ on the github page help other people find it?
I’ve worked with PlatformIO with a simpler project, and enjoy the debugging capabilities etc. I knew that I needed to ensure things were declared, but I didn’t know how to find out what to declare, and in which file for this larger project. The compile flag you used was key and definitely something I didn’t know about.
I’ve added into my local copy the modifications from:

into usb-keyboard.h and updated the platformio.ini file and now the code compiles for the Arduino Leonardo platform. I fixed a couple of compiler warnings about comparison of signed and unsigned values and a ‘!’ operator operand needing parentheses too.
What I’d like to do next is modify the code so that the system accounts for different keyboard layouts, but I’ll ask that in another post.
BW,
A