Announcement

Collapse
No announcement yet.

4D-CD-00008 Genie - Screen Saver - Arduino

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 4D-CD-00008 Genie - Screen Saver - Arduino

    To understand this code example more quickly, please read first the code example:

    4D-CD-00013 Genie - Form Navigation - Arduino

    The ViSi-Genie Communications Protocol provides a function for controlling the contrast or brightness of the display. From section "2.1.3.5 Write Contrast Message" of the ViSi-Genie Reference Manual:
    The host issues the Write Contrast command message when it wants to change the contrast
    or brightness of the display. Certain power saving modes and applications may require the
    host to dim or completely turn off the backlight.
    Note: Contrast value of 0 will turn the backlight OFF. Any non 0 value will turn the backlight ON.
    The datasheets of 4D display modules describe a relevant fact in the Display Precautions section:
    Avoid having to display the same image/object
    on the screen for lengthy periods of time. This will
    cause a burn-in which is a common problem with
    all types of display technologies. Blank the screen
    after a while or dim it very low by adjusting the
    contrast. Better still; implement a screen saver
    feature.
    This code example presents a working ViSi-Genie-Arduino application wherein the backlight of the display module is turned off (contrast or brightness is set to zero) after a predefined period of time.





    Below are additional notes from the Picaso internal functions reference manual.
    LCD MODULES:
    contrast 0 = display OFF, non-zero = display ON

    EXCEPTION:
    uLCD-43 supports Contrast values from 1-15 and 0 to turn the display off.
    3202X-P1 supports Contrast values from 1 to 9 and 0 to turn the display off.
    Below are additional notes from the Diablo16 internal functions reference manual.
    LCD MODULES:
    contrast 0 = display OFF, 1-15 = contrast level (Actually backlight brightness)
    This code example has two parts - the ViSi-Genie Magic project and the Arduino sketch. Below were the steps involved in creating this code example:

    1. Create the ViSi-Genie project. The following are the "main" objects of the project:
    1.1. Form0 - configured to report a message. On Form0 are:
    1.1.1. 4Dbutton0 - configured to report a message, momentary property set to "No"
    1.1.2. Winbutton0 - configured for navigating to Form1
    1.1.3. Leddigits0 - for displaying time
    1.2. Form1 - configured to report a message. On Form1 are:
    1.2.1. Slider1 - configured to report a message
    1.2.2. Winbutton1 - configured for navigating to Form2
    1.2.3. Leddigits1 - for displaying time
    1.3. Form2 - configured to report a message. On Form2 are:
    1.3.1. 4Dbutton1 - configured to report a message, momentary property set to "No"
    1.3.2. 4Dbutton2 - configured to report a message, momentary property set to "No"
    1.3.3. Winbutton2 - configured for navigating to Form0
    1.3.4. Leddigits2 - for displaying time
    1.4. Form3 - the screen saver form. When this form is activated, the display brightness is set to 0
    1.4.1. Winbutton3 - configured to report a message
    2. Compile the Genie project and upload the program to a uLCD-32PTU. Copy the supporting files to a uSD card mounted to the PC. Properly unmount the uSD card from the PC and mount it to the uLCD-32PTU.

    3. Compile and upload the attached sketch to an Arduino Uno. The sketch uses a software serial port for the display.

    4. Properly connect the Arduino Uno to the uLCD-32PTU. See the application notes for this.
    Attached Files
    Doff
Working...
X