Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:04 10 Oct 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 1x16 LCD

Author Message
mace
Newbie

Joined: 04/03/2023
Location: Finland
Posts: 11
Posted: 01:17pm 07 Oct 2025
Copy link to clipboard 
Print this post

Hi.
I Have 1x16 LCD. When using pico intepreter, first eight characters is displaying,rest not. I know reason for this. I can manipulate program to display all 16 characters. But,is there easy way on mmbasic to display all 16 characters?
Thanks.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8173
Posted: 01:53pm 07 Oct 2025
Copy link to clipboard 
Print this post

Are you working from the MMBasic manual?

As far as I know there's nothing that would prevent you from displaying all 16 characters at once provided the display is the correct sort and has been connected and initialised properly.

  Quote  To setup the display you use the DEVICE LCD INIT command:
LCD INIT d4, d5, d6, d7, rs, en


  Quote  To display characters on the module you use the LCD command:
LCD line, pos, data$


In your case "line" will always be 1. If "pos" is 1 it starts at the first character on the line. "data$" can then be a string of up to 16 characters for a 16 character display.

Unfortunately I haven't got a display to test with at the moment.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
mace
Newbie

Joined: 04/03/2023
Location: Finland
Posts: 11
Posted: 02:48pm 07 Oct 2025
Copy link to clipboard 
Print this post

Ok.
I mean like this

https://gcbasic.sourceforge.io/help/_lcd_variant.html

Thanks
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1144
Posted: 03:45pm 07 Oct 2025
Copy link to clipboard 
Print this post

As your link shows, position 9 is not immediately after position 8. Instead, it is in memory location 40. (Might be hex, not decimal.)
Visit Vegipete's *Mite Library for cool programs.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8173
Posted: 06:10pm 07 Oct 2025
Copy link to clipboard 
Print this post

There's no equivalent of LCD_VARIANT in MMBasic. All you can do is add a constant to pos when necessary. You need all the details of that particular LCD to see how the memory is laid out.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025