i want to know how to write
if(PINB.5==1)
{
PORTB~PORTB;
in avr language in the arduino compiler using the same avr language
i want to know how to write
if(PINB.5==1)
{
PORTB~PORTB;
in avr language in the arduino compiler using the same avr language
PINC.7What is this meant to be ? Bit 7 of PINC perhaps ? Please clarify what you are trying to do.
UKHeliBob:
PINC.7What is this meant to be ? Bit 7 of PINC perhaps ? Please clarify what you are trying to do.
sry i meant PINB.5 which is the pin 13 in arduino i want to read its value as digitalRead but using avr code
i want to read its value as digitalRead but using avr code
Haven't you just answered your own question ?
AWOL:
i want to read its value as digitalRead but using avr code
Haven't you just answered your own question ?
i want it in avr code embedded c language not arduino language
poliguaco34:
AWOL:
i want to read its value as digitalRead but using avr code
Haven't you just answered your own question ?
i want it in avr code embedded c language not arduino language
What are you perceiving the difference to be? "Arduino language" is C++.
And what is "avr code embedded c language"? Is that different from C? If not, why not say "C"?
Maybe:
if(PINB & bit (5))
PORTB~PORTB;
What is that? Not C.
yes i mean "C language"sorry
portB~portB dont consider it, its a part of my code
what i want to know know how to write PINB.5 in arduino iDE
Use bitWrite and bitRead
Arrch:
Use bitWrite and bitRead
sry but how they are used ?
poliguaco34:
what i want to know know how to write PINB.5 in arduino iDE
What was wrong with my reply?
if(PINB & bit (5))