stepper ULN 2003 code

Dear colleagues,

I am really new of ardunio programming. I have motor stepper ULN 2003 and arduino uno. I have googling all topics related how to program stepper motor as I have, but the answer is more confusing me (maybe because I am new). As I would like to create is:

I want to have full rotation 270°, but in between can be stopped or devided into 8 steps. each step can be function using knob or switch.

Please assist me..

Thanks lot in advance cheers