Hi all,
I’m working on a project with a SPO2 sensor from Mordern DevicesLinked here and it’s pretty functional on an Arduino and uses the software I2C. I’ve been stuck for days trying to port it to my photon.Full disclosure, I’m a noobie to firware dev and programming and I mainly work on the HW side of things so please bear with me .
I tried uploading the program along with library files from Particle Dev on Windows, Here’s a link to the library.
First it threw me an error saying ‘Wprogram.h’ does not exist as I had aldready encountered this error I removed it SI114.h file along ‘Arduino.h’ , ‘avr/pgmspace.h’, ‘avr/pgmspace.h’, ‘util/atomic.h’ and compiled again. Now I got a boat load of errors like ‘pinMode’’ was not declared in scope and similar errors for some core functions like ‘digitalRead’ ‘digitalWrite’. After some quick google search I added a #include “application.h” to SI114.h file.
Now however I’m faced with a lines of errors like this,
I’m clueless now and I have no idea on how to proceed can anyone please help me out with porting this?
We’re working on connected pulse ox sensors for children in rural villages.