This was previously configured to PC5 which is shared with the i2c SCL line. PD7 is selected since it's the only pin which does not have an additional function.