Controlling the backlight of a 4D systems display

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Controlling the backlight of a 4D systems display

Post by Zane »

Hi,

A while ago i posted this in the V6 forums ...
I am currently working on a project using a 4D systems display. What I would like to do is after a given delay I would like to turn the backlight off and have it switch back on again when the screen is touched.

With the VISI component macros, this option is given by setting the contrast to 0. However there is not a similar option available under the 4D display component.

To achieve this functionality, I am wondering what the best means to do this are. Can this be easily achieved by using the component maker and adding to the existing 4D component or would you need to make a whole new component from scratch? (sorry have had no experience using this function yet) What steps would be required? Under SGC command set http://old.4dsystems.com.au/downloads/S ... -rev11.pdf on page 16, the details for the data that needs to be sent to the display to make this happen are listed. (59h) for the command (00h) for the backlight and either (00h) to turn the backlight off or (01h) to turn it on.

Any help would be most appreciated.
What i was wondering is there any chance of being able to modify the component in V5 to give it the same functionality as well?

Thanks

Zane

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: Controlling the backlight of a 4D systems display

Post by Benj »

Hi Zane,

Should be easy enough, which chip variant of v5 are you using and I will adjust the component C file with the new function.

Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Re: Controlling the backlight of a 4D systems display

Post by Zane »

Hi Ben,

I am using the V5 for PIC micros

Thanks for your help :D

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: Controlling the backlight of a 4D systems display

Post by Benj »

Hello,

Here is a new component C file that should work and allow you to control the display like the new v6 component does.
FC5_PIC_gLCD_5.c
(32.85 KiB) Downloaded 356 times
Let me know how you get on.

Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Re: Controlling the backlight of a 4D systems display

Post by Zane »

Thanks Ben most appreciated :D

Post Reply