Compare pulse count to value - Multiple Inputs

Hi gcjr,

Could you perhaps give me some pointers in how to move the bcd reading code to setup?

I keep getting myself into a position where I either get

a function-definition is not allowed here before '{' token

I am assuming this is because I am trying to put a function into setup and it doesn't like it.

or I get

bcdtot is not declared in this scope.

Which I assume it because setup and loop are different scopes.

I just can't make sense of which bit needs to go where.

Thanks.