Forum: Mikrocontroller und Digitale Elektronik Pic18f13k50 und Tsop 4838


von melvin S. (siffup)


Lesenswert?

Hallo,

nach viel Lektüre habe ich nur noch diese Frage:
kann Das überhaupt funktionieren????

void LCD_vString(char str[])
{
 byte max = 0;
 byte i;

 while (str[max] != '\0') //Loop until the end of the string has been 
reached
 {
  max++; //Get the length of the string
 }

 for (i = 0;i < max;i++) //Loop until the end of the string is reached
 {
  LCD_Send(str[i]); //Display each character in the string on the LCD
 }
}

/*********************************************************************** 
********
* Function: LCD_String(auto const far rom char *str) 
*
* 
*
* Variables: 
*
* *str -> Points to the constant string that is passed into the function 
*
* 
*
* Description: 
*
* This function will display a constant string for the user on the LCD. 
*
************************************************************************ 
*******/
void LCD_String(auto const far rom char *str)
{
 byte max = 0;
 byte i;

 while (str[max] != '\0') //Loop until the end of the string has been 
reached
 {
  max++; //Get the length of the string
 }

 for (i = 0;i < max;i++)  //Loop until the end of the string is reached
 {
  LCD_Send(str[i]); //Display each character in the string on the LCD
 }
}

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.