Night light

JacksonGee:
I follow what you mean in terms of a the idea but the code is beyond what I can fully understand at the moment.

My code seems really simple to me :d
Why don't you tell me what you didn't understand

Of course, I'll sketch something tomorrow and post it up.

JacksonGee:
Of course, I'll sketch something tomorrow and post it up.

Why don't you tell us what you didn't understand from the code?

RE understanding the code I'll post up later with some annotations if that's ok?

Here's the drawing to show how it's wired up. There are two LEDs in parallel and there is also a PTM switch between ground and reset but I've left these out for clarity.

Had a go a tidying up the wiring today. I didn't realise I could have taken a 12v feed from Vin when I put this one together, next time I'll use Vin as it would be a much tidier solution even if the voltage is slightly lower than the input.

Going to have a go with the sleep/interrupt code posted above now to see how much of it I can work out.