diff --git a/example.txt b/example.txt new file mode 100644 index 0000000000000000000000000000000000000000..db4c94f84bc8c2dbda14ff5de76d157cbbe48588 --- /dev/null +++ b/example.txt @@ -0,0 +1,15 @@ +// measure frequency of the in or out pin in reference to ground +// bridge the in and out pin using a jumper to allow for the transfer of information + +const int in = 0; +const int out = 1; + +void setup() { + pinMode(in, INPUT); + pinMode(out, OUTPUT); + digitalWrite(out, LOW); +} + +void loop() { + digitalWrite(out, 1 - digitalRead(in)); +} \ No newline at end of file