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)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...