I’m new to the mbed platform and I was hoping to use Visual Studio for coding rather than the online IDE / EmBitz
I found PlatformIO which appears to be a collection of Python scripts which can be used for building programs for various microcontrollers. It was fairly easy to install using these instructions once you have Python 2.7 installed.
I was able to set up a blank Visual Studio project by running this script:
platformio init --ide visualstudio --board lpc11u68
It automatically downloaded and installed the toolchain for the lpc11u68 board (which the Pokitto uses)
Next I cloned the latest PokittoLib from https://github.com/pokitto/PokittoLib and then ran:
platformio lib -g install ./PokittoLib/Pokitto
Which appears to copy the Pokitto lib into C:\Users<username>.platformio\lib\Pokitto
I added the Hello World example main.cpp to my project root and attempted to build. It looks like it managed to find the Pokitto lib correctly (from the #include “Pokitto.h”) but fails to build the library. It appears to be a problem with include paths when trying to find the headers.
C:\Users\James.platformio\lib\Pokitto\POKITTO_CORE\FONTS\TIC806x6.cpp:15:10: fatal error: PokittoFonts.h: No such file or directory
PokittoFonts.h is actually in the parent directory so it makes sense that it fails without setting up explicit include paths. How is this handled in mbed / EmBitz build scripts? Does anyone else have experience building with PlatformIO that can lend a hand?