Hi,
I am very new to programing PIC in C and need some help. I have been looking on the net for some sample code to do the following:
I what to use one switch to turn on different outputs e.g.
1st short switch push, turn on o/p 1
2nd short switch push, keep o/p 1 on and turn on o/p 2
3rd long hold , turn off o/p 1 and 2 (plus turn of o/p 1 if only 1st short switch used).
Plus
1st long hold, turn on o/p 1 then short delay (keep o/p 1 on) turn on o/p 2
3rd long hold , turn off o/p 1 and 2
But I cannot find any examples of using a switch this way.
If anyone can help and point me in the right direction I would be grateful.
Thanks
I am very new to programing PIC in C and need some help. I have been looking on the net for some sample code to do the following:
I what to use one switch to turn on different outputs e.g.
1st short switch push, turn on o/p 1
2nd short switch push, keep o/p 1 on and turn on o/p 2
3rd long hold , turn off o/p 1 and 2 (plus turn of o/p 1 if only 1st short switch used).
Plus
1st long hold, turn on o/p 1 then short delay (keep o/p 1 on) turn on o/p 2
3rd long hold , turn off o/p 1 and 2
But I cannot find any examples of using a switch this way.
If anyone can help and point me in the right direction I would be grateful.
Thanks