Page 1 of 1

Controlling the backlight of a 4D systems display

Posted: Wed Feb 04, 2015 9:42 am
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

Re: Controlling the backlight of a 4D systems display

Posted: Wed Feb 04, 2015 4:00 pm
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.

Re: Controlling the backlight of a 4D systems display

Posted: Wed Feb 04, 2015 10:27 pm
by Zane
Hi Ben,

I am using the V5 for PIC micros

Thanks for your help :D

Re: Controlling the backlight of a 4D systems display

Posted: Thu Feb 05, 2015 11:55 am
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 435 times
Let me know how you get on.

Re: Controlling the backlight of a 4D systems display

Posted: Thu Feb 05, 2015 10:34 pm
by Zane
Thanks Ben most appreciated :D