SOLVED Please help: Pins are not functioning!

retrolefty:
Why the const in the statement void output_result(const long result) {

That doesn't look right. And calling two different variable the same name 'result' is misleading.

Lefty

My gosh. Yes there was indeed a problem with the script name. Thank you!!

And Thank you for everyone who posted. All of you have been a great help in either solving the problem or learning a trick or two about arduino. Thank you all :grin: