how does a change in wavelength affect the speed of a photon.

The universal wave equation states that v = fë, therefore wavelength is directly related to the speed of the wave. That means that if the frequency is increased, the speed is also increased and vice versa, as long as frequency is kept constant.