sofapirate / chrono Goto Github PK
View Code? Open in Web Editor NEWChrono library for Arduino and Wiring
License: GNU General Public License v3.0
Chrono library for Arduino and Wiring
License: GNU General Public License v3.0
1.0.0 is listed but not 1.0.1, so I would assume that means if someone uses the example code out there that requires start() it may cause issues?
I would suggest to add a function like stop_reset
void Chrono::stop_reset() {
_offset = 0; // reset to zero
_isRunning = false;
}
Hi!
A nice addition to your readme page can be a this ardu-badge "badge" from www.ardu-badge.com.
Code:
[![arduino-library-badge](http://www.ardu-badge.com/badge/Chrono.svg)](http://www.ardu-badge.com/Chrono)
It shows:
What do you think?
Thank you for such an easy to use timing system.
The only issue I have seen so far is that the myTimer.elapsed() returns the results of all of only the first times that was created and seems to not be limited to just the instance of the intended timer
I have 4 timers running
Chrono t1(Chrono::SECONDS);
Chrono t2(Chrono::SECONDS);
Chrono t3(Chrono::SECONDS);
Chrono t4(Chrono::SECONDS);
each one is set for a different time however when I check the times in their respective loops I only get the elapsed time of the first timer unless i force a restart on that timer before it is started.
I wish use for lengthy periods (+6months) without controller reboot.
Keywords are not highlighted in arduino IDE. I've noted, that spaces between "name" and "KEYWORD#" should be "TABs". After that it works ok.
keywords.txt
Arduino:1.6.6 Hourly Build 2015/06/17 11:12 (Mac OS X), Board:"Arduino Uno"
/Chrono-master/Chrono.cpp: In member function 'void Chrono::delay(long unsigned int)':
/Chrono-master/Chrono.cpp:89:22: error: 'passed' was not declared in this scope
while (!passed(time));
^
/Chrono-master/Chrono.cpp: In member function 'bool Chrono::hasPassed(long unsigned int, bool) const':
/Chrono-master/Chrono.cpp: 100 :15: error: passing 'const Chrono' as 'this' argument of 'void Chrono::restart(long unsigned int)' discards qualifiers [-fpermissive]
restart();
^
Setting the timer so it will not start does not seem to work. Is this the correct way to implement it?
I am using the latest version but getting this
exit status 1
no matching function for call to 'Chrono::Chrono(Chrono::Resolution, bool)'
Hi,
I am trying to use the chrono library to make an arduino longterm countdown. When I compile the code, it is saying 'class Chrono' has no member named 'start' . Is there an obvious mistake I am making here?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.