I need to make a photo app.
Will it be possible to assign some function, like controlling the light intensity or brightness to an iPhone\'s hardware volume control
Short Answer:No.
A few photography applications have tried to do this and Apple has rejected them all. Maybe one day...