Jump to content

Recommended Posts

Hi all,

I am trying to print letters sourced from an array onto a lcd.

 

char array[2] = {'a','b'};

unsigned int i;

for(i=0; i<2; i++)
{
  lprintf("%C",array[i]);
}

 

Using "%C" or "%S" does not work.

 

Regards,

Daz.

Share this post


Link to post
Share on other sites

%c and %s are usually lower case but are they supported by lprintf ?

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites
%c and %s are usually lower case but are they supported by lprintf ?

 

Cheers

 

Reynard

 

Ok, thanks.

Will they be supported as I'm sure I will not be the only one with this headache?

 

Over to you guys, Dave and Pavel!

 

Regards,

Daz.

Share this post


Link to post
Share on other sites
Using "%C" or "%S" does not work.

They are not implemented as they are easily done with the following functions:

 

 char c  = 'A';
lcd_write( c );

char* msg = "hello";
lprintf( msg );

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...