Jump to content

2x20 LCD


protofuse
 Share

Recommended Posts

I'm adding the final part on my protodeck controller: a nice white over blue LCD.

it is a 2x20.

where should I declare the type of LCD? its size etc ?

MIOS_LCD_TypeSet and other C functions are ok for me to use, but where?

I didn't figure out that.

I'm sorry for this n00b question (I guess)

all the best,

Link to comment
Share on other sites

hello,

it helps.

but should I put special files in my apps folders? in my MIOS_base folders ?

NO

if it is an Hitachi driver compatible character LCD, you don't need to do anything as it is default LCD in MIOS

any C code must refer to the following section of main.c

/////////////////////////////////////////////////////////////////////////////

// This function is called by MIOS when the display content should be 

// initialized. Thats the case during startup and after a temporary message

// has been printed on the screen

/////////////////////////////////////////////////////////////////////////////

void DISPLAY_Init(void) __wparam

{

  MIOS_LCD_Clear();

  MIOS_LCD_CursorSet(0x00);

  MIOS_LCD_PrintCString("Hello World!");

}


/////////////////////////////////////////////////////////////////////////////

//  This function is called in the mainloop when no temporary message is shown

//  on screen. Print the realtime messages here

/////////////////////////////////////////////////////////////////////////////

void DISPLAY_Tick(void) __wparam

{

}

Link to comment
Share on other sites

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

×
×
  • Create New...