4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-G5001 TURNING TECHNOLOGY INTO ART. Serial - Displaying Third-Party Fonts

Similar documents
4D SYSTEMS TURNING TECHNOLOGY INTO ART. Application Note: 4D-AN-G5002

4D Systems. Application Note: 4D-AN-G3001. in ViSi Environment. Document Date: 15 th December Document Revision: 1.0

Workshop 4 Installation INSTALL GUIDE. Document Date: February 4 th, Document Revision: 1.1

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-P3001 TURNING TECHNOLOGY INTO ART. ViSi - Displaying Third-Party Fonts

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Arduino Adaptor Shield TURNING TECHNOLOGY INTO ART. 4Display-Adaptor-Shield

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

4D Systems. Application Note: 4D-AN-P2002. Playing Video on PICASO based modules using RAW option. Document Date: 15 th December 2012

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

APPLICATION NOTE. Application Note: 4D-AN-P4007. ViSi-Genie Play Video. Document Date: November 15 th, Document Revision: 1.

APPLICATION NOTE. Application Note: 4D-AN-P4009. ViSi-Genie Inputs. Document Date: November 19 th, Document Revision: 1.0

USER GUIDE. Workshop 4 User Guide. Document Date: 17 th December 2012 Document Revision: 1.1

APPLICATION NOTE. Application Note: 4D-AN-P4004. ViSi-Genie Advanced Buttons. Document Date: November 15 th, Document Revision: 1.

DATASHEET. 3.2 Display Bezel. 4D-Bezel-32 For the ulcd-32ptu Display Module. Document Date: 16 th September 2013 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Carrier Board for μoled-160-g1/g2 CB-160-G1

DATASHEET. gen4 Programming Adaptor For all gen4 sizes (Picaso and Diablo16) gen4-pa. Document Date: 29 th January 2016 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET 4D SYSTEMS. 4Display Shield with 2.2 Display TURNING TECHNOLOGY INTO ART. 4Display-Shield-22

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

DATASHEET 4D SYSTEMS. uusb-pa5 uusb-pa5-ii. microusb Programming Adaptor TURNING TECHNOLOGY INTO ART. USB to UART Serial Bridge

2.8 microlcd Intelligent PICASO Display Module

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.9

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 25 th September 2013 Document Revision: 0.

Font Tool User Guide. Abstract. Document Date: 1 July 2009 Document Revision: 01

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Embedded DOS micro-drive Module. μdrive-μsd-g1

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

Introduction. Rev.1.2

USER MANUAL. Workshop4 IDE USER GUIDE. Document Revision: 2.1 Document Date: 29 th July 2017

Application Note: 4D-AN-P4010 ViSi-Genie Connection to a Host with Red- Green-Blue LED Control

DATASHEET 4D SYSTEMS. Arduino Display Module Pack TURNING TECHNOLOGY INTO ART. ulcd-43-pt-ar. Featuring 4.3 Serial Display Module

USER GUIDE. Workshop4 PRO SMART WIDGETS EDITOR. Document Revision: 1.1 Document Date: 29 th July 2017

REFERENCE 4D SYSTEMS TURNING TECHNOLOGY INTO ART. μdrive. (μdrive-μsd-g1) COMMAND SET. Document Date: 23 rd October 2012 Document Revision: 4.

DATASHEET. 4D 7.0 LCD CAPE Beagle Bone Black 7.0 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.2

DATASHEET 4D SYSTEMS. Raspberry Pi Display Module Pack TURNING TECHNOLOGY INTO ART. Featuring a 2.8 Display Module ulcd-28-ptu-pi

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 8 th January 2014 Document Revision: 1.

DATASHEET 4D SYSTEMS. Embedded Audio-Sound Module TURNING TECHNOLOGY INTO ART SOMO-14D. Document Date: 5 th February 2013 Document Revision: 1.

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 15 th October 2013 Document Revision: 1.7 DISTRIBUTED BY TEXIM EUROPE

RE866 Interface User Guide

Serial JPEG Camera Module Data Sheet

GUI design made easy. Creating the First Project with. additional software

Installing Your Microsoft Access Database (Manual Installation Instructions)

Serial JPEG Camera Module Data Sheet

DATASHEET 4D SYSTEMS. Serial JPG Camera Module TURNING TECHNOLOGY INTO ART. Document Date: 5 th September 2012 Document Revision: 1.

ESS Utility Android App User Guide

GS2K External Flash based Host Firmware Update Application Note NT11608A Rev

MySonicWall Secure Upgrade Plus

AN S1401 Using BlueMod+S as Beacon

MULTIFUNCTIONAL DIGITAL SYSTEMS. Software Installation Guide

GS2K OV SDK User Guide. 1VV Rev

End User License Agreement

TO OUR VALUED CUSTOMERS

IoT AppZone Release Notes

MULTIFUNCTIONAL DIGITAL SYSTEMS. Software Installation Guide

1. License Grant; Related Provisions.

NEC ESMPRO Manager Monitoring Tool Installation Guide

C-NaviGator Software Update Installation Procedure

CodeWarrior Development Tools mwclearcase Plug-in User Guide

Copyright mikroelektronika, All rights reserved.

Copyright mikroelektronika, January All rights reserved.

AVRflash. Program. User manual

AccelDSP Synthesis Tool

SOMO-14D Embedded Audio-Sound Module

TurboCAD Pro V Drawing Template

DATASHEET. 4DPi-24-HAT. 2.4 Primary Display for the Raspberry Pi. In partnership with. Compatible with A+, B+ and Pi2

CEC1702 clicker. a great idea is just a click away

Terminal I/O Profile Client Implementation Guide

Programming and Evaluation Tool for Serial EEPROMs

One Identity Active Roles 7.2. Web Interface User Guide

NOVPEK NetLeap User Guide

FW Update Tool. Installation Guide. Software Version 2.2

Terms of Use. Changes. General Use.

One Identity Starling Two-Factor AD FS Adapter 6.0. Administrator Guide

Toad Data Point - Professional Edition. The Toad Data Point Professional edition includes the following new features and enhancements.

Microsoft Dynamics GP. Extender User s Guide Release 9.0

INCLUDING MEDICAL ADVICE DISCLAIMER

StickIt! MPU-9150 Manual. How to install and use your new StickIt! MPU-9150 Module

QPP Proprietary Profile Guide

TurboCAD Pro V21 - Drawing Template

EAM Portal User's Guide

Reference Guide VIB 10/11. (VIB 10 pictured) vehicle integration box

LV Programmer. User manual

LED Manager for Intel NUC

mikroprog Suite for PIC programming software

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

One Identity Starling Two-Factor Authentication. Administrator Guide

One Identity Manager Administration Guide for Connecting Oracle E-Business Suite

mikrobasic PRO for FT90x Creating the first project in

Daniel MeterLink Software v1.40

One Identity Active Roles 7.2

User Guide. BlackBerry Docs To Go for Android. Version 1.3.0

Pi Gateway Windows 7 Operator Manual

Toad Data Point - Professional Edition

CodeWarrior Development Tools mwclearcase Plug-in User s Guide

Optimus.2 Ascend. Rev A August, 2014 RELEASE NOTES.

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

One Identity Starling Two-Factor Desktop Login 1.0. Administration Guide

SonicWall Mobile Connect ios 5.0.0

One Identity Manager 8.0. Administration Guide for Connecting to a Universal Cloud Interface

user's guide to Expand development system capabilities by adding 8K EEPROM memory accessory board EEPROM

Cloud Access Manager How to Deploy Cloud Access Manager in a Virtual Private Cloud

Transcription:

APPLICATION NOTE 4D SYSTEMS TURNING TECHNOLOGY INTO ART Application Note: Serial - Displaying Third-Party Fonts Document Date: 5th February 2013 Document Revision: 1.0

Description This application note is intended to provide users of 4D Systems Goldelox Display Module and beginners, information on how to serially display third party fonts or customized fonts. In order to carry out this application note the following items are required: A. Development 4D Workshop 4 IDE B. Simulation A 4D Systems Goldelox Display Module 2GB usd Card USB usd Card Adapter 4D Programming Cable Content Description... 2 Content... 2 Application Overview... 3 Setup Procedure... 3 Adding Fonts Procedure... 4 Customizing Fonts using the ViSi environment... 4 Completing the ViSi project... 6 Writing Font data to the usd Card... 7 Simulation Procedure... 9 Converting a 4D Goldelox Display to a Serial display... 9 Serial-Displaying the fonts... 11 Choosing and displaying another font... 13 User Experiments... 14 Conclusion... 14 Proprietary Information... 15 Disclaimer of Warranties & Limitation of Liability... 15 2012 4D Systems Page 2 of 15 www.4dsystems.com.au

Application Overview This application note walks the user through the steps to get a 4D Systems Goldelox Display up and running for the first-timer, with the guarantee at the end of displaying any text or string typed and rendered using thirdparty or even customized fonts other than the 4D System fonts that are displayed by default when writing text, labels or strings. This application note starts with a basic tutorial in the creation of a simple Visi project to generate a sample media font base on a usd card which will be used by a Goldelox display of choice. Furthermore, this application note would serve as a guide for any beginner in converting any Goldelox display to a Serial display using the Serial Environment of Workshop 4, using the SPE application from 4D Systems. At the end, the user will be introduced in operating the Serial Commander application tool inside the Workshop 4 IDE to stream data, commands and functions to control and show the custom fonts or third party fonts created using the ViSi Environment, on the display module connected to the host PC using a 4D programming cable. Setup Procedure Foremost, the 4D Workshop 4 IDE has to be downloaded and installed. This is available from the 4D Systems website through the following link: http://www.4dsystems.com.au/prod.php?id=172 Documentation regarding Workshop 4 and its environments, such as ViSi and Serial, can also be downloaded from this site. 2012 4D Systems Page 3 of 15 www.4dsystems.com.au

Adding Fonts Procedure Customizing Fonts using the ViSi environment Open the Workshop 4 (WS4) IDE and click "Create a new project". Choose the Display module you want to use. For this example we select the uoled-128-g2, and click Next. This will open the ViSi development environment window within the WS4 IDE as shown below. Select the ViSi evironment 2012 4D Systems Page 4 of 15 www.4dsystems.com.au

On the ViSi code area, position the cursor as shown below: Click inside the display area in the Form or WYSIWYG section of WS4 IDE. to drop the String placeholder represented by a dashed red box. On the WS4 main menu, click Widgets and then select Labels tab on the objects ribbon. Scroll down to the Object Inspector area and find the String property field. To add a font and open the string editor, simply double click on the (...) of the String property field as shown below. Next, select and click on the Strings Icon 2012 4D Systems Page 5 of 15 www.4dsystems.com.au

This opens the string editor where you can select the font type, and text style, size and other attributes. See next photo below for details. We will now add the second string. To do so, we repeat the steps starting from the selection of the String icon on the Labels menu. Again click on the Form or WYSIWYG section to drop the new string placeholder. In the same manner as in String1, on the Object Inspector area, go to the String2 properties and click (...) to open the String Editor window. For this exercise, select Harlow Solid Italic with size of 20. Click OK to finalize and exit the String Editor window. In the font selection area of the string editor, click on the down arrow and select the desired font type. As an example, we use the Sony Sketch EF font and we set the size to 24 as shown below. The user may at his own desire select another font. Completing the ViSi project Next go to the Object Inspector area and on the Object menu select Form1 as shown below: Next, click "Paste all Code". 2012 4D Systems Page 6 of 15 www.4dsystems.com.au

This completes the ViSi code. which generates the data for the fonts we will be using for the simulation. Writing Font data to the usd Card NOTE: During this procedure, the 4D programming cable or the Display module should NOT be connected yet. First step is to copy the font data to a usd card. Insert usd to USB adapter and plug to PC. On the ViSi window Home ribbon in WS4 click the Compile button. At this point you might be prompted to save the file. Choose a location and type in the filename you desire. ( 3PFontsDemo was used for this example ). FAT format the usd card. Go back to ViSi project window. 2012 4D Systems Page 7 of 15 www.4dsystems.com.au

After clicking on Compile, you will be prompted to select and confirm the drive to where the font files will be saved. Click OK to confirm and start copying. That's it!, you have successfully copied the font data to the usd card. Eject from the USB and adapter and insert it to the Display module you are using for this demo. ( uoled-128-g2 in this example) Go back to the WS4 IDE, right click on the 3PFontsDemo in the statement #inherit "3PFontsDemoConst.inc". Windows security might prompt whether to allow RawCopy.exe to run, click Yes. Another prompt will appear asking you if you want to overwrite the files on the selected drive, click Yes. Next, click "Open file at Cursor" and this should open a new screen as shown below: 2012 4D Systems Page 8 of 15 www.4dsystems.com.au

Simulation Procedure Please take note of the values at the arrow tip in the foregoing picture which appears on your screen, write them down as we need it later for the font simulation. They represent the sector in the usd card where the font data is stored in Hex format. Converting a 4D Goldelox Display to a Serial display In this example, the uoled-128-g2 module was used. Any 4D Systems Goldelox display may be used provided it features in the module list in Workshop 4. With the usd inserted to the Display module, connect a 4D programming cable to the module and plug it to one of your PC's USB port. In case the system prompts you to install the driver, please install the hardware. The appropriate 4D programming cable driver can be downloaded from the link below: http://www.4dsystems.com.au/prod.php?id=138 The next step is to create a new project in Workshop 4 (WS4). NOTE: All the G2 series Display Modules are factory programmed with the SPE unless requested otherwise by the customer. Here, the first font points to sector 0x0 and the second is on 0x21. In case you see different values, that's not a problem, just note them down. This ends the first part of this application note. 2012 4D Systems Page 9 of 15 www.4dsystems.com.au

Select the appropriate display you want to use. Again for this example we used the uoled-128-g2. Please select the model accordingly to what you have and click Next. Connect the display module using a 4D programming cable to the USB port. Click COMMs tab on WS4. Ensure that the "Indicator Dot" is blue otherwise select appropriate COM port (usually COM3 or higher) then click the dot and wait until it is blue indicating that communications with the module was established. Not Connected COM connected Select the serial environment Open Tools menu and click SPE Load. This procedure would load the necessary firmware and configuration to convert the display in Serial (SPE) mode. On the 4D display, you should see a splash screen scrolling at this point. That's fine! 2012 4D Systems Page 10 of 15 www.4dsystems.com.au

Serial-Displaying the fonts After loading the SPE application, open Serial Commander by clicking on the Icon in the Tools menu, see above photo for details. The Serial Commander screen should appear as shown below: Click to open the Gfx tab. Select gfx_cls and press the Send button below. Using this application, you can serially control your 4D display module to send Graphics, Text, Media and other commands as needed. Following is a closer view: This will clear the 4D display screen. Next click on the Media tab and select media_init and press Send. Next, from the same menu, select media_setsector. Here you are prompted to enter the Sector addresses. Remember the Hex values from part 1 of this section? The values are 0x0 and 0x21. Now we need to use 2012 4D Systems Page 11 of 15 www.4dsystems.com.au

these values. Inside the 3PFontsDemo.4DViSi are two third-party font types namely Sony Sketch EF located at 0x0 and Harlow Solid Italic located at 0x21. If you get different numbers, use those what you got instead. The first exercise will be to use the Sony Sketch EF font, here located at 0x0, meaning HiWord = 0 and LoWord = 0 in decimal form. 0x0 is "0" and "0" for HiWord and LoWord respectively. The screen defaults is zero for both thus we need not enter anything on the boxes below and simply press Send. FontNumber = 7 denotes media(i.e. usd_card) fonts which are fonts not included in the 4DSystem fonts. Next step, click on the Other tab to open the Other menu. At this point, we are ready to write and display text on the display module screen. Select putstr and type "Hello World" or any text you may prefer. For this example, we type "Hello World". See photo below for details. Now open the Txt menu by clicking on the Txt tab. Select txt_fontid and enter "7" in the FontNumber box. See below photo for details: 2012 4D Systems Page 12 of 15 www.4dsystems.com.au

Looking at your display, it should look and show these: LoWord = 33 in the boxes provided. This points now to the sector of the usd where the second font data is stored. Note: 33 is the decimal equivalent of 0x21 which is hexadecimal notation. In case you got a different value convert it to decimal and enter this in the LoWord box. Follow the succeeding steps as in the first font exercise. Sending the next string to the display assuming we type again "Hello World" will show: If the display scrolls, just send SSTimeout from the Other tab. Choosing and displaying another font As mentioned earlier, a second third-party font has been embedded in the 3PFontsDemo Visi application which is the Harlow Solid Italic type font. To do so, repeat all the previous steps starting with the gfx-cls command. When you reach the media_setsector portion enter HiWord = 0 and 2012 4D Systems Page 13 of 15 www.4dsystems.com.au

User Experiments The user may use the Serial Commander to change the text style, FGcolour, BGcolour, Bold, Italic, underline or other attributes and properties as the user may prefer and be able to view the results on the display. Conclusion This application note has shown the user the versatility of the 4D Systems Intelligent displays in particular the Goldelox series which is featured in this application note being capable of displaying custom or third party fonts other than the 4D System fonts available by default. Further, it is our hope that we have delivered useful information which guarantees the user the ease-of-use in setting up 4D systems displays for serial display applications. 2012 4D Systems Page 14 of 15 www.4dsystems.com.au

Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed without prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. The development of 4D Systems products and services is continuous and published information may not be up to date. It is important to check the current position with 4D Systems. All trademarks belong to their respective owners and are recognised and acknowledged. Disclaimer of Warranties & Limitation of Liability 4D Systems makes no warranty, either expresses or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non-infringement and fitness for any particular purpose. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages. 4D Systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). 4D Systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Use of 4D Systems products and devices in 'High Risk Activities' and in any other application is entirely at the buyer s risk, and the buyer agrees to defend, indemnify and hold harmless 4D Systems from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any 4D Systems intellectual property rights. 2012 4D Systems Page 15 of 15 www.4dsystems.com.au