hello guys,
i am trying to understand and commenting codes for programming transmitter and receiver so please i need help in this :
//from the receiver codes
if(vw_get_message(buf, &buflen))
{
for(int i = 0; i < buflen; i++)
{
if(buf[i] == '1')
{
digitalWrite(13, HIGH);
}
else if(buf[i] == '0')
{
digitalWrite(13, LOW);
}
}
}
in this we are sending 1 from the keyboard so '1' is a string isn't it ? between quotes
and what if we want to send an integer ?
well thanks a lot great
well thanks a lot great stuff here !! but didn’t understood from half of the description till the end :S
from (You need to tell the compiler you only want a char) till the end :S
nevertheless i took a course at university that teach me how to convert the bits and hex and these stuff but i feel it’s useless because i don’t even know how it is used in real life !! damn universities most of the times are useless !! and i am a programmer 2 a website programmer (self-thaught) but i didn’t even know or had that info about a string is an array of char !! lol maybe i can understand it that way without knowing it directly
i am gonna read your comment again and again and try to understand it and we’ll see then