To the Spark Community,
first of all I want to say “Hello”.
Therefore: Hello to the community.
So, back to business I´ll try to keep this as short as possible…:). If i say something completely wrong trust me that is not my intention. I try to learn something new, thus it is possible that I make mistakes! I need some help. Help that I can read on and do some “further investigations” on how it is possible to port my current Android Nano v3 project to my ordert Spark Core.
Short project describtion:
The current project is mainly used as a, aehm, twilight control?! Hope you know what I mean. The Arduino Nano v3 checks the time of a day and if the time is between X and Y and the photo resistor goes under my predefined value a relay is switched on for a given time. Date and time and the photoresistor value is send to a 1602lcd display. Mainly that´s it…
To get this work with Arduino I use 4 libraries. After I have read in the forum I come to the conclusion that I don´t need all of them with the Core again.
Here’s what I’ve found and hopefully understand correctly:
As far as I understand - I can use this lib. So the LCD should do. All I need is CustomCharacters, setCursor, Write and Clean.
RTClib.h / Wire.h
Both of them are used for a DS1307 RTC module. I don´t think I need them again when I use the Core. Because I can use NTP, right?! I need something like the unixtime to do some timing functions analog to the well known millis() function.
Like int functionunixtime if functionunixtime >= currentunixtime do something
Last one and very important for me. This is a protothread library (https://code.google.com/p/arduinode/downloads/detail?name=pt.zip) anyone knows if there is a similar lib for the Core out there which I can use, or maybe someone has ported that lib already?
Do I get it? Am I right or wrong?
In advanced - thx for any help on this topic.
Tried to used my best translation skills (and they are not very skilled) for this.
Have mercy on me cheers clyde