Re: LCD

Started by Niel Jepsen July 20, 2001
I have hooked up an LCD and keyboard a la the LCD users guide, but the
keyboard options on pg 6 table 1 don't seem totally kosher.
Firstly, I presume the table 1 heading "mode byte" should read "mode
bit"
Secondly, setting b1 to 1 or 0 has no effect with me. Both setting
result in 1 byte being sent for key up and key down.
Thirdly, setting bit b3 only works if b2 is also set.
Does anyone else have this experience?.
neil



I'm new to this and slowly working toward devlopment of a project
that will require an LCD display. Is there something around 2.5" X
1.5" that can be interfaced with the BX-24? For that matter can any
LCD interface with the BX-24? The ones on the Netmedia website are a
little small and a bit more than I want to spend for this project.

Thanks,

Frank


, http://www.phanderson.com,
----- Original Message -----
From: <>
To: <>
Sent: Sunday, January 05, 2003 7:04 PM
Subject: [BasicX] LCD > I'm new to this and slowly working toward devlopment of a project
> that will require an LCD display. Is there something around 2.5" X
> 1.5" that can be interfaced with the BX-24? For that matter can any
> LCD interface with the BX-24? The ones on the Netmedia website are a
> little small and a bit more than I want to spend for this project.
>
> Thanks,
>
> Frank >
> ">http://docs.yahoo.com/info/terms/


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/02


I just got a NetMedia 2x16 LCD. I would like to have it
display "Pressure" on the top line and a value taken from a POT on
the other line. I would be using the getADC command to get the
value from the POT. I would like the value to be displayed in real
time and adjust as you move the POT. Does anyone have a simple code
for this that can get me started?

Thank you for your help.

Best regards,
Allyn


From: allynroe <>

> I just got a NetMedia 2x16 LCD. I would like to have
> it display "Pressure" on the top line and a value
> taken from a POT on the other line. I would be
> using the getADC command to get the value from the
> POT. I would like the value to be displayed in real
> time and adjust as you move the POT. Does anyone
> have a simple code for this that can get me started?

Probably the easiest thing is to have the compiler create a
skeleton LCD project, then modify the source code. In the editor,
go to File/New Project, click on Project Type -- Serial LCD2x16.
(This requires the V2.1 IDE, which is the newest version.)

The compiler will create a new project that includes modules
LCD2x16API and LCDSerialPort, along with a simple main program
that exercises the LCD. Try replacing the main program with the
code shown below, and that should get you started.

-- Frank Manning
-- NetMedia, Inc.

Public Sub Main()

Const PortNumber As Byte = 1
Const Baud As Long = 9600
Const LCDInputPin As Byte = 0 ' Dummy for Com1
Const LCDOutputPin As Byte = 0 ' Dummy for Com1

Dim Voltage As Single
Const ADCPin As Byte = 18

Call LCDInitialize( _
PortNumber, Baud, LCDInputPin, LCDOutputPin)

Do
Call GetADC(ADCPin, Voltage)

' Unit conversion.
Voltage = Voltage * 5.0

Call LCDClearScreen

Call LCDMoveCursor(1, 1)
Call LCDPutStr("Pressure")

Call LCDMoveCursor(2, 1)
Call LCDPutStr( Fmt(Voltage, 2) )

Call Delay(0.5)
Loop

End Sub



Thank you Frank!

The code worked and it helped d/l the newer version of the basicx
program. My next task is to try a Crystalfontz display. I really
appreciate your support and NetMedia's.

Allyn
--- In , "Frank Manning" <fmanning@n...> wrote:
> From: allynroe <allynroe@h...>
>
> > I just got a NetMedia 2x16 LCD. I would like to have
> > it display "Pressure" on the top line and a value
> > taken from a POT on the other line. I would be
> > using the getADC command to get the value from the
> > POT. I would like the value to be displayed in real
> > time and adjust as you move the POT. Does anyone
> > have a simple code for this that can get me started?
>
> Probably the easiest thing is to have the compiler create a
> skeleton LCD project, then modify the source code. In the editor,
> go to File/New Project, click on Project Type -- Serial LCD2x16.
> (This requires the V2.1 IDE, which is the newest version.)
>
> The compiler will create a new project that includes modules
> LCD2x16API and LCDSerialPort, along with a simple main program
> that exercises the LCD. Try replacing the main program with the
> code shown below, and that should get you started.
>
> -- Frank Manning
> -- NetMedia, Inc.
>
> Public Sub Main()
>
> Const PortNumber As Byte = 1
> Const Baud As Long = 9600
> Const LCDInputPin As Byte = 0 ' Dummy for Com1
> Const LCDOutputPin As Byte = 0 ' Dummy for Com1
>
> Dim Voltage As Single
> Const ADCPin As Byte = 18
>
> Call LCDInitialize( _
> PortNumber, Baud, LCDInputPin, LCDOutputPin)
>
> Do
> Call GetADC(ADCPin, Voltage)
>
> ' Unit conversion.
> Voltage = Voltage * 5.0
>
> Call LCDClearScreen
>
> Call LCDMoveCursor(1, 1)
> Call LCDPutStr("Pressure")
>
> Call LCDMoveCursor(2, 1)
> Call LCDPutStr( Fmt(Voltage, 2) )
>
> Call Delay(0.5)
> Loop
>
> End Sub