Actually, that’s not working for me.
Here’s what I’ve got going on:
I have a directory with a program in application.ino and the two main source files from the neopixel library, neopixel.cpp and neopixel.h
I want to be able to compile and load the code onto both a core and a photon. I know that the code works fine, because I’m able to compile and load it onto a core or a photon from the web interface, including the neopixel library through the web interface. The problem is, when I build locally, I’m only able to get it to run on a core.
I pulled kennethlimcp’s commit that has the ‘particle compile platform myDirectory/’ addition, and I’m able to run ‘particle compile photon myDirectory/’ and ‘particle compile core myDirectory/’, and I get firmware for both the photon and the core. I’ve tried loading the compiled photon binary onto the photon by both wifi and USB, but it doesn’t run. I also tried spark flash photonId myDirectory/, also without luck
Any ideas? I’m working on photon compatibility for cubetube.org, and I need to have a command-line command way to compile a bunch of semi-complex code (it uses a library we wrote for our cubes, and I wasn’t able to use the local build environment to compile anything that wasn’t just a single file) and send code to a given core or photon. I’m down with local compilation or cloud compilation, I just want something that works.