Digispark/ATTINY85 - how to measure time elapsed?
with c++ , raspi call time or measure epoch..but i'm new attiny85 , sketch , don't know if has clock features - want measure time elapsed event, , increase value of variable (to increase fan speed). each passing minute event has not been corrected. there way increase static variable in loop () number of seconds elapsed?
look in reference millis() function. to time event, record value of millis() @ start of event in variable. store mills() in different variable @ end of event. the difference between 2 variables time elapsed.
Arduino Forum > Using Arduino > Project Guidance > Digispark/ATTINY85 - how to measure time elapsed?
arduino
Comments
Post a Comment