Skip to content
Snippets Groups Projects
Commit ac2a3294 authored by copplestone's avatar copplestone
Browse files

example code added

parent 137e240a
No related branches found
No related tags found
No related merge requests found
// 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment