milan.rajik
Banned
- Joined
- Apr 1, 2013
- Messages
- 2,524
- Helped
- 540
- Reputation
- 1,078
- Reaction score
- 524
- Trophy points
- 1,393
- Activity points
- 0
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.