This will probably come across a bit bitchy, but it’s not supposed to. I love Particle and I’ve been using them since the 1st batch was shipped, I really want to use them for everything but I have constant problems with either faulty hardware, software/library inconsistencies, undocumented “quirks” or just lack of documentation.
I find it really frustrating, in fact all the projects I have got working have been an epic battle. Recently I’ve started developing projects on Arduino then trying to port to Particle once I’m done to avoid the headaches, which isn’t productive at all.
Anyway this particular project I’m trying to get an Electron to work with the Adafruit ILI9341 TFT resistive touchscreen. After a lot of testing it turns out I have a faulty electron, (support have confirmed this) so I’ve been working with a photon. I have the ILI9341 doodle example working. This involved fixing the libraries and I couldn’t even find a Touchscreen lib, so I ported the Arduino one (I’ll publish this once fully tested).
So I want to port to Electron. I’d assumed that would have been as simple as changing the target device and compiling, but it just doesn’t seem to work. To keep it simple I went for an OTA update via the web IDE. The compile timed out the 1st time, then the second time complained about not being able to find Arduino.h. I tried swapping this for application.h but now it throws up loads of errors, so obviously yI@m still missing all the stuff defined in Arduino.h.
To make it more complicated, sometimes I make changes and recompile and it has no effect on the error, other times I don’t make any changes and I get a different error back.
I tried to compile using Atom, however, this fails to include the mfGFX lib, despite the lib being included in the project properly. I also gave up and manually created the cpp/h files as per the other libs I’ve had to create myself and removed the lib included via shared libs. I still get the same error.
So does anyone have any suggestions on how to get the Adafruit touch demo working on an Electron, if I’m just porting a working version from a Photon?