Programming is the same as mathematics. A different way of doing business has more than one. This application is similar transactions made with different codes. About as long as the button is pressed the first two LEDs are lit. In the last two buttons toggle transaction was made. LEDs will illuminate when pressed once again, is led off when pressed.
Proteus isis Mathematical Operation circuit
Whether the button is pressed if (! K1) as we will be able to check with the expression if (K1 == 0) We can check it with the structure. LED3 =! LED3; toggle operation is performed by the expression. LEDs are lit and extinguished the lights is off.
Hi Tech C Example Mathematical Operation proteus isis and code files:
Password: 320volt.com
Published: 2011/01/14 Tags: hi tech c examples, microchip projects, microcontroller projects
Button Control with Different LEDs Ensure Hi Tech C Example
In this application, each button is pressed, the LEDs are made with a different process. If you notice here that controls the release of the button at the end of the while statement is the if statement.
When the button is pressed so that the LEDs corresponding changes are made in the process after the release of the button is checked. Last button is connected to the port LEDs LEDs extinguish by assigning 0xFF. LEDs by pressing the first button left. The first four LEDs will illuminate when the second button is pressed, the last four LEDs are unlit. To third in the last four LEDs will light up when the button is pressed, the first four LEDs are unlit.