Waiting loop to decrease variable

im new to arduino and have to make a timed loop so every 5 seconds it decreases a variable by 1 how do i do

Hi, @helpimstuck
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

Have you written any code?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Use millis()

For information and examples look at Using millis() for timing. A beginners guide or Several things at the same time

Is this an assignment?
What resources have you been provided to understand this?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.