I have two ESPToys marked v1.21 on the back of the pcb. I'm done with LUA and wanted to use the Arduino firmware instead. I uploaded the stock v2 ESPToy demo program and it works as expected with one exception. The data sent out the serial line is garbled. It looks like a baud rate problem but I exhaustively tried every common baudrate up to 230400 with no luck. The "board" I chose was a generic "esp12e". I also tried esp07, esp01_1m, esp01 with no luck. I was pretty sure the 8266 version on an ESPToy v1.21 was a 12e but the lua firmware (node.info()) was saying only 512K of flash and the esp12e was listed as 4M.
Thinking something else was weird, I wrote a trivial "Hello World" and ran that, with all "board" choices. It didn't work either.
Thinking there was some issue between the CH341 serial interface on the ESPToy and the Raspberry PI 2 driver I'm using with platformIO I put the LUA firmware back on. Of course the serial line works just fine.
I also have an Adafruit huzzah breakout board. I've not had any troubles with the serial line with it.
I'm aware of makeESPArduino instead of PlatformIO but I haven't tried it yet.
Is there something obvious that I'm missing or is PlatformIO not that straight forward if the specific board support is not built in.
EDITED TO ADD:
Sorry, it was a very dumb mistake that has absolutely NOTHING to do with either PlatformIO or ESPToy v1.21. As far as I can tell PlatformIO is working just fine. All I have had to do to get the ESPToy v1.21 (which I'm fairly certain contains only 512K of flash) is to choose a board type of "esp12e" and set a build option of "build_flags = -Wl,-Tesp8266.flash.512k0.ld" in your platformio.ini file. I'm guessing, given the Makefile from Ray's v2 demo program, that later versions of the ESPToy have a larger flash memory. You'd need to adjust the "build_flags" as appropriate.