Program a Arduino to output a sine wave / square wave

The sin() function accepts values in radians as a float.

You must modify your counter value to look like radians of a circle. You should do this in a spreadsheet before attempting to program.