EB037 EBM001 GLCD - Easy layout of Labels and Values

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

Moderators: Benj, Mods

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

EB037 EBM001 GLCD - Easy layout of Labels and Values

Post by Jay Dee »

Hi,
Been playing with the EBM001 GLCD unit and an ECIO40P.
!! Check the pin assignment is correct for your PIC, I was using ECIO Port C and the patch jumpers on the EB084 board. !!

In a typical project development, I often need to just monitor a load of values. A pre-made layout for labels and writing variable values, can be handy.
The following FC uses three macros,
Disp_DrawFrame - creates a simple framework, with title bar and 9 slots for text labels and variable values.
Disp_ValueText - writes the user defines labels
Disp_UpdateNumbers - Clears the old value and write the latest variable value.

Things are spaced out to give 12 characters for the label and 6 number characters for values, so enough for Signed 16 bit variable.

Its not a highly polished project but handy for development and learning simple things to do with the EBM001 GLCD.
I used Bens improved components and it works well on the bench,
GLCD_Frame and Values - Test1.fcfx
(26.67 KiB) Downloaded 432 times
EBM001_Frame.PNG
Screen Shot of Display in Simulation
(11.72 KiB) Downloaded 3924 times
May be helpful to others,
Cheers, J.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB037 EBM001 GLCD - Easy layout of Labels and Values

Post by Benj »

Thanks for posting, looks very nice.

Key-value pairs (name & value) come up quite a bit especially in things like HTML forms or XML so a set of macros or a component to easily display them is a very good idea.

Post Reply