Using Tera Term (open source) as a colour LCD Display

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8287
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2372 times
Been thanked: 3379 times
Contact:

Using Tera Term (open source) as a colour LCD Display

Postby medelec35 » Sun Dec 23, 2018 12:31 am

Hardware:
only using ECIO40p, which plugged in to my PC via USB.
Or you could use ECIO28P
Note If this is the fist time you have used USB serial of ECIO and Device manager show error for USB driver then you will need to generate your own Seral USB driver.
This is not the driver for programming, but the driver that's used for USB serial UART communications.
Just make a new folder, e.g. ECIO USB serial driver
Within Flowchart select the USB Serial on the 3D panel.
Right select properties.
Within USB driver, Drive Directory select the down arrow and browse to the newly created folder.
Change the Generate Driver from no to yes.
A new USB serial driver will be generated within the new created folder.
THe new driver is used within Device manager to set up a virtual com port for the ECIO Serial.

Software :
Tera Term which can be downloaded from here.
The great thing about Tera Term is thats it's default mote is compatible with VT100 commands
So for example the above link shows cursor position is

Code: Select all

ESC>[{ROW};{COLUMN}H
X=2, Y=10 then you send an escape char = Byte 27 then send string string "[10;2f"
If you want text to be green, then on the link you can see

Code: Select all

<ESC>[{attr1};...;{attrn}m

So in this case you can use just one attribute i.e green font = 32, so you would first send an escape char =

Code: Select all

 byte 27
then send the following string:

Code: Select all

"[32m"

With the attached flowchart there are two text files and a call macro.
Just set the text file to text number for the colour and Y, X location of text and e.g:

Code: Select all

TextColour = 32 //Green
X = 2 //2 Across
Y = 5 //5 Down
TextString = "Green Font, 2 across & 5 Down"

&

Code: Select all

TextColour = 31 //Red
X = 5 //5 Across
Y = 10 //10 Down
TextString = "Red Font, 5 across & 10 Down"

Compile to chip and the result on the termial software via ECIO40 USB:
Vt100 Formatted Text.png
Vt100 Formatted Text.png (24.78 KiB) Viewed 706 times

You can of course have several lines of text fixed.
You can also use it to display information e.g diagnostics or general data without the need for addition hardware like LCD's.
The main advantage is you have a lot more columns and rows than an LCD.
Plus a normal LCD does not have coloured fonts.
You can also increase the font size.
Within Tera Term go to Setup, Font.
As a general guide with the smallest font you have have about 230 chars across.
Attachments
ECIO40 Tera Term as a dispaly1.fcfx
(14.21 KiB) Downloaded 26 times
These users thanked the author medelec35 for the post (total 3):
kersing (Sun Dec 23, 2018 1:33 am) • mnf (Sun Dec 23, 2018 9:44 am) • jgu1 (Tue Dec 25, 2018 7:12 pm)
Rating: 16.67%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1069
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 437 times
Been thanked: 487 times
Contact:

Re: Using Tera Term (open source) as a colour LCD Display

Postby Steve001 » Sun Dec 23, 2018 9:09 am

Thanks martin,
Going to have a go with this later

Got a diagnostics problem so will try and use this to see if I can see what is going on

Steve
Success always occurs in private and failure in full view.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8287
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2372 times
Been thanked: 3379 times
Contact:

Re: Using Tera Term (open source) as a colour LCD Display

Postby medelec35 » Sun Dec 23, 2018 12:39 pm

Hi Steve,
The attached version is to start you off with diagnostics:
Vt100 Formatted Text2.png
Vt100 Formatted Text2.png (4.5 KiB) Viewed 674 times

You don't require ECIO16 or ECIO40 for this to work.
You can use any target device and UART to USB converter.
Attachments
ECIO40 Tera Term as a dispaly2.fcfx
(14.1 KiB) Downloaded 24 times
These users thanked the author medelec35 for the post (total 2):
Steve001 (Sun Dec 23, 2018 5:17 pm) • jgu1 (Tue Dec 25, 2018 8:11 pm)
Rating: 11.11%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1069
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 437 times
Been thanked: 487 times
Contact:

Re: Using Tera Term (open source) as a colour LCD Display

Postby Steve001 » Sun Dec 23, 2018 5:18 pm

cheers martin

Will have a go with this later
Success always occurs in private and failure in full view.