simple flashlight LED - NEW to pic 12f629 -
hello all,
i'm very happy that i found you site. I'm very new to PbP programming. Actually i have very basic knowledge and would like ta have some help if you have time.
So lets start from what i have in mind to do.
1)I would like to use at first the PIC12f629.
2)I need to use one button.
3)and one LED
Now.... i want to press the button and light the LED on 10 % of brightness
then to press it again and light it to 50 % and then press again and light it to 100%
At the end if i press it once more to turn off the LED.
Actually if it is simple enouph i would like to turn the led off if i press the button more that 3 seconds.
If this is very difficult to do please do not be bother to help me i dont want to disturb you. But if anyone have time i would be very please.
What i have done till now is not a lot.
I have turned on an LED and turned off.
Then i can use PWM GPIO.0,a + 1,2 to light the LED but none more.
I have also an other problem that i cannot turn on with PWM command more that one GPIO.
For example i would like to turn on the LED from 0 to 255 and then from 255 to 0 but on the port GPIO.0, GPIO.1 and GPIO.2, how can i do that?
Thank you very much for your help in advance.
Best Regards
astanapane.:D