Only getting 2 volts from output pins

Any ideas?

You forgot to define the pins as outputs in the setup() function.