This is an old revision of the document!
Code to send data to the PIC:
void setup() { pinMode(3, OUTPUT); // sets the digital pin as output } void loop() { pulseMicroseconds(3, 1500); //1.5 mS delay(100); } void pulseMicroseconds(int pin, int dur) { digitalWrite(pin, HIGH); delayMicroseconds(dur); digitalWrite(pin, LOW); }