Jump to content

Recommended Posts

Posted

MIOS_LCD_PrintPreconfString
C_DECLARATION 	void MIOS_LCD_PrintPreconfString(unsigned char len, code char *str)
DESCRIPTION 	prints a preconfigured string
C_IN 	Pointer to String in <str>
Stringlength in <len>
C_EXAMPLE 	

  // defined somewhere *outside* the function!
  const unsigned char text_welcome_0[] = { "Hello World!" };

  // within the function: print string
  MIOS_LCD_CursorSet(0x00 + 0);
  MIOS_LCD_[b]PrintString[/b](12, text_welcome_0);

  // please see also the MIOS_LCD_PrintCString function!
I think this should be
 // within the function: print string
  MIOS_LCD_CursorSet(0x00 + 0);
  MIOS_LCD_[b]PrintPreconfString[/b](12, text_welcome_0);

?

I tried this example but instead of displaying hello world I get 12 times the play symbol

(first character of special char set)

MIOS_LCD_PrintCString does work as expected...

Posted

Yes, it's a typing error

I tried this example but instead of displaying hello world I get 12 times the play symbol

so, you get this with MIOS_LCD_PrintPreconfString? Then there is an error in the wrapper as well

Best Regards, Thorsten.

Posted

yes, I just tried with an empty skeleton,

I replaced the MIOS_LCD_PrintCString with PrintPreConfigString

(with the text_welcome_0[] declared in main.c)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...