change brightness with motor direction