Ok please forgive me, i am very noobish … i actually need to ask a question but not sure how to start it as a topic like he did up there…
i need a simple program where i can read a frequency, no need to display it.
ill read it if its above 500hz an led light up,
and if its below 500hz another led from another pin light up… of course i am not going to ask u guys to do this for me but i will try my self in the cod below… please forgive my obvious syntax error.
#include <FreqMeasure.h>
int led1=13;
int led2=9;
void setup() {
FreqMeasure.begin();
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
}
if (FreqMeasure.available()< 500)
digitalWrite(led1,HIGH)
else
digitalWrite(led2,HIGH)
end
will this work ?
just a clarification for the library , i got it from this site http://www.pjrc.com/teensy/td_libs_FreqMeasure.html#compare , and i place it in my libraries folder within the audrino upload, is this right ?