slipstick:
First thing - have you tried a simple test program to write something to the LCD? That would prove that it's wired up correctly, properly powered and the contrast is set correctly. If not, get that working first.And then your code:
Why is pin6 named both buttonPin and HBStart?Why do you keep printing TEMPERATURE to the LCD when you never set that variable to any value other than the default 0?
What is pushbutton() supposed to do? If run is 0 set it to 255 and then if run > 0 do nothing. What your code doesn't ever do is read a pushbutton.
Your 10 times blinking LED is one thing that should use a loop. Have a look at the "for" loop, it's very useful for doing the same thing several times.
Steve
Hi,
I hadn't realised that I had given the pin two names. The push button was intended to start the heart rate sensor. And I don't understand the temperature question (I'm still figuring things out so maybe you could tell me how to correct that part)