Hi, I'm Ash from Malaysia. Anyway about my question could i count the amount of time that a led have turn on with blink without delay? in my set up i want to make an led to turn on for 5 second and off for 5 second, the led will blink for maybe 50 time counting only when it is on. but for every 10 time it has blink, the amount it turn off reduce by one. like count | time on | time off 0-10 5 5 11-20 5 4 21-30 5 3 31-40 5 2 41-50 5 1
should i use if and if...else or is there any other way?