Button/led code question
Posted: 04 Apr 2010 20:19
Hi,
I am very new to programming and I am trying to learn as I go. I have a simple schematic that I designed around a PIC16F628a that will be a speedometer/odometer for my bicycle. I am starting very simple though and taking baby steps with it. I have initiated the LCD and I can make it print what I want, and I have made the LED blink. Now I want to get the reset button working and the other button to simply turn on the led when pressed and turn off when released. I can't find any simple programming (that I can understand) that works with mikroC for this.
Can someone please point me in the right direction? Maybe some sample code that would do this? debounced would be even better, but is not necessary at this point of my learning.
EDIT: I got the reset button to work, but I still need some direction for making the led button work.
Thanks for any advice,
Jeremy
I am very new to programming and I am trying to learn as I go. I have a simple schematic that I designed around a PIC16F628a that will be a speedometer/odometer for my bicycle. I am starting very simple though and taking baby steps with it. I have initiated the LCD and I can make it print what I want, and I have made the LED blink. Now I want to get the reset button working and the other button to simply turn on the led when pressed and turn off when released. I can't find any simple programming (that I can understand) that works with mikroC for this.
Can someone please point me in the right direction? Maybe some sample code that would do this? debounced would be even better, but is not necessary at this point of my learning.
EDIT: I got the reset button to work, but I still need some direction for making the led button work.
Thanks for any advice,
Jeremy