hi im not understand programming good and ask how i make thats, i need 2 bush button s1=up, S2=down)
and have 1,2,3,4,5 led.
need memory/var,memory, or what ?
start var=1 and led1 hight
and if bush s1 var+1 or S2 var-1
read var =led high
var1=out led1 high,var2=out led2 high and and and-----
if var 1 and s2 nothing happend var and led have 1
if var 1 and s1 var+1 and led 1 low and led 2 hight (ghange led)
max var 5 and s1 nothing var+led5==5
var 5 and s2 var-1=4 and led 4
mean minim=1 and maxim=5 if s1 make more than 5 nothing can do. mean if var >5 nothing if var <1 nothing.
eweru bush button s1 up or s2 down ghange led 1,2,3,4,5 and back down 5,4,3,2,1,
or 3 and s2=2 or s1 =4
and leds out if 1 high all other low.
maybe read var if var 1,2,3,4,5
if 1 led1 hight 2,3,4,5 low = 10000
if led 2 high 1,3,4,5 low= 01000
led3= = 00100
L5 = 00001
or how ???
start or reset all led = 10000 ==var=1 + led=1
if s1 var+1
if s2 var -1
ghange var=varold+1 or -1
read var out led ==var
i no know,i no understand good thats
how write code ???
i think some night thats and no can start write,all i feel have wrong lot