Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Mark Schipper
mschipper

posted on 2013/03/28 05:30:15 AM CET

Other Codes

12F675 code to momentary switch between on-off-auto & RGB LEDs

Hi

l am trying to replace a standard dpdt three position switch (on-off-on) with something a bit smarter.

I have a 12F675 I want to use with a momentary switch to toggle on-off-auto and provide high/low outputs the same as a three pos switch. I also want an RGB led to indicate the switches current state via three colors. The idea would be to have single button presses for on and off, but a long press/hold to go into auto mode and single press to cancel auto.

Ive searched everywhere for a solution but haven't found anything. Can one of you point me in the right direction of an example or a project someone else has come up with?

Thanks.