Controlling a back light on a 4D Systems display

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

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 a back light on a 4D Systems display

Post by Zane »

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.

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 a back light on a 4D Systems display

Post by Benj »

Hi Zane,

I've just added a display control macro to the component for you which allows you to set the display on/off, set the backlight on/off and control the contrast. Have a go and see how you get on.
gLCD_EB076_4D.fcpx
(27.74 KiB) Downloaded 255 times
The file needs to be placed here "C:\Program Files (x86)\Flowcode 6\components" before restarting Flowcode.

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 a back light on a 4D Systems display

Post by Zane »

Hi Ben,

Thanks for making the mod to the 4D component, most appreciated.

With the latest firmware revision for the display, the instruction set remains unchanged when using the VISI component however when run its serial environment a new instruction set is used instead that is not compatible with the 4D component. I am keen to try using the component creator to interface with the display using the newer firmware revision...looking forward to trying out this new functionality built into Flowcode.

Thanks

Zane

Post Reply