Thanks a mill
This littel setup I have here seems to work pretty well.. it never seem to miss a step when I move the potentiometer and the only
thing it has a problem( apart from the fade function) is the bounce when I push the switch....Im still busy looking at how to programe the debounce in so iv lifted the delay for now.
Iv seen some arrays where they look somthing like this ( 0,1,0,0,1,1,1) tryed to change it here but no luck. will go thru the array tutorial a bit more.