so i want to input this code:
{
{
int pulseState = digitalRead(BPM);
if (BPM > 100)
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
}
{
if( BPM < 100)
digitalWrite(4, LOW);
}
}
to this code:
https://code.google.com/p/pulse-sensor/downloads/d...
but it doesnt seem to work. what is the problem with it?
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
Try this code :
{
int pulseState = digitalRead(BPM);
if (BPM > 100)
{
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
}
{
if( BPM < 100)
digitalWrite(4, LOW);
}
}