ABOELLEEL
Junior Member level 3
Hi all,
My project is very simple that is keypad UP,DN & OK, LED
When i press ok LED is ON and OFF if i pressed UP or DN
UP----> porte.f1
DN----> porte.f0
OK----> portc.f3
LED---> porte.f2
and this is the code
The problem that i can turn LED on and cant off it
I am using mikroC V8.2.0.0
:?::?::?::?::?::?::?::?::?:
My project is very simple that is keypad UP,DN & OK, LED
When i press ok LED is ON and OFF if i pressed UP or DN
UP----> porte.f1
DN----> porte.f0
OK----> portc.f3
LED---> porte.f2
and this is the code
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 void main() { TRISE = 0X03; PORTE.F2 = 0; TRISC.F3 = 1; while(1) { if(PORTE.F1 == 1) PORTE.F2 = 0; //UP if(PORTE.F0 == 1) PORTE.F2 = 0; //dn if(PORTC.F3 == 1) PORTE.F2 = 1; //ok } }
The problem that i can turn LED on and cant off it
I am using mikroC V8.2.0.0
:?::?::?::?::?::?::?::?::?:
Last edited by a moderator: