Hi all,
Haven't posted much, usually like to try everything myself first. But this one is something i feel i need to ask.
Over the years I have been building these movement activated night lights, have recently made my first PCB that includes some surface mount!
I was using the ATmega328 cause im a bit of a noob in some ways, plus i kinda like the plain english structure of the Arduino IDE programming environment, and i can pass on my code and kits.
I have replaced the atmega328 with an Attiny85 which i am still programming with the plain language of the arduino IDE.
The problem is, I am having trouble making a nice delay while my light is on.
Not every command is supported of course for the Attiny and i guess some timers are used for some functions, leaving them unavailable for other things, i guess i would need to check a whole bunch of stuff, the data sheet and the library that supports the attiny through arduino.
But just as a regular question,
does everyone here use timers based around interrupts?
I have of course been using the delay command, cause im a noob, but i guess a hardware timer with interrupt is the best way?
Im unsure and would like to be pointed in the right direction so i can code better.
Toby.
My board is attached ..