Re: [bascom] On switches
Hi!,
I too am of the opinion of using debounce command for switch
inputs especially when using in circuits having inductive loads such as
relays and solenoids. I came across the problem of erratic inputs on the
pins in my circuit which was controlling a solenoid valve. Just by changing
over to the Debounce command sorted out the problem.
J S Nirody
Tim Helps wrote:
> I notice a lot of sample and actual projects most people seem to program
> switch input in BASCOM using
>
> IF pinb.1=0 then ...
>
> should I be using the debounce command for most switch inputs? it seems
> tighter code!
>
> Also should all inputs to be used be switched through 1k resistors?
>
> Tim