i know im gona kill your time , but im in need
im very new to programming, i have a nano ( Nano V3.0 ATmega 328 16M) board and i need a program to full fill these conditions
I have 4 LED at pin D2, D4,D3,D8 as output
D7 as digital input input (Button)
analog input from LDR at A0
analog input from LDR at A1
now if value at A0 is below 300, D2 should be ON and if D2 stayed on for more than 100 seconds D4 should be blinking, D2,and D4 states should be reset by an input from D7 and whole process repeats until value again goes below 300.
now if value at A1 is below 300, D3 should be ON and if D3 stayed on for more than 100 seconds D8 should be blinking, D3,and D8 states should be reset by an input from D7 and whole process repeats until value again goes below 300.
if you can provide explanatory notes it would be great, thanx in advance