Pic18f13k50 und Tsop 4838

OP #2814224
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
 }
}

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.