Corrected port initialization for EdmundOptics photodiode