[Solved] Arduino MEGA Digital I/O Issues

Did you forget to configure the pin as an output?