milan.rajik
Banned
How to read if port is high or low in mikroC PRO AVR ?
I have an LED connected to ATMega328P PORTB.F5 and I want to check if LED is ON or OFF. How to do that ? I tried these but they are not working.
I turned ON LED using PORTB.F5 = 1 and then used
but these are not working.
I have an LED connected to ATMega328P PORTB.F5 and I want to check if LED is ON or OFF. How to do that ? I tried these but they are not working.
I turned ON LED using PORTB.F5 = 1 and then used
Code C - [expand] 1 2 3 4 5 6 7 if(PORTB.F5)//do this else //do this and if(PINB.F5)//do this else //do this
but these are not working.