
Originally Posted by
clare1
....
The problem with that is the way the example problem works is that
when the using presses the button, it only activates after you have released the button.
Question :
How can i modified the code so that it works when the button is pressed
the different test1 , test2 & test3 to activate
would i have to use portb change
....
There is something called "Rising Edge" and also "Falling Edge".
You check what these are first.
Then you will know how to set a button when it is pressed or after it is released.
----------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks