//main function
void setup() {
//pin17 is the bit 3 of port C on arduino.
pinMode(17, OUTPUT);
}
//loop
//we want to set this pin to either 5V or 0V.
//5V=high, 0V=low.
void loop() {
//square wave high value.
digitalWrite(17, HIGH);
//wait for 660.
delay(660);
//square wave low value.
digitalWrite(17, LOW);
//wait for 340.
delay(340);
}