I’m trying to add a library to the IDE, I followed the indications how to do it, but no having a success. I tried a couple libraries: Timer, and TimerOne Neither one works, I keep getting an error about “WProgram.h: No such file or directory”
Searching for WProgram.h Mr Googdle basically returns nothing
By the way, I have three Photons, one of them has the latest 0.6.1-rc.2 firmware, and I am using this one to test adding the libraries.
Hi ScruffR, thank your for replying. Yes, I select the correct firmware in the Web IDE, I use either the 0.6.0 or 0.6.1-rc.2. Here is the thing, if I select 0.6.0, I get that error about WProgram, if I select 0.6.1-rc.2 then I get lots of verbiage. In either case, it wont compile.
I edited the TimerOne.h file, I commented out the #include WProgram.h entry, basically the same result.
Here is what I get if I use the 0.6.1-rc.2 firmware:
Processing /workspace/triac-timer_one.ino
fatal: destination path ‘firmware’ already exists and is not an empty directory.
From https://github.com/spark/buildpack-base
I added that file, still having errors. This is crazy, I wish I can program the Photon using the Arduino IDE. I like the Photon, but I guess Is a PITA.
Yes, i know the Photon can do Timers. I am trying to develop a dimmer using the zero cross point of the AC line, I found a couple examples that I like to try out, but they are using those libraries, that is the only reason.
I guess @peekay123 has just missed out a "not" in his post.
Since that lib is HW specific it's not compatible.
BTW there are other zero-cross/dimmer threads on this forum and they use the SparkIntervalTimer library to do the timing.
That basically comes down to the question why there is not only AVR producing micro controllers. STM should just pack it in and leave the world unaffected by innovation?
I think you misunderstood my point - and I forgot to end that sentence with the more appropriate question mark (which I added now).
That was meant as an ironic statement, to stress the point that "reinventing the wheel" is inevitable when different hardware demands for different techniques.
After all the Particle devices are running on STM controllers, the original Arduinos are running on AVR.
So why would I "tell" STM to pack it in? They make the controllers I consider superior to the AVRs (at least the ones used on vanilla Arduinos).
BTW:
Jumping to conclusions and generalizing based upon an "unreflected" notion what was meant (but wasn't really) doesn't seem too friendly either.
Especially since using all capitals is considered shouting on community boards.