I am supposed to display a text string letter by letter, and it has to be incremented once by pressing any letter on the keyboard it will output the first letter in the string, then the second letter, then the third and so on.
this is what I have so far, integer data is the ascii values in hex of the keys I am pressing. I'm trying to say for any value between the first key (nul) and the last key (del) the text string will be incremented by 1 so it would go T-e-x-t_s-t-r-i-n-g and so on. what am I doing wrong? I don't think this works.
Code:
int put_edit(volatile int data)
{
    char text_string[] = "\nText String incremented\n> \0";
    int i;
    
    for( i = 0; text_string[i] !=0; ++i){
    if (data < 0x00 & data > 0x7F)
    {
         i++;
    }
    
    
    
    }
        
    
    return data;
    
}