S5U13781R01C100

S5U13781R01C100 Datasheet


S5U13781R01C100 Shield Graphics Library Users Guide

Part Datasheet
S5U13781R01C100 S5U13781R01C100 S5U13781R01C100 (pdf)
PDF Datasheet Preview
S5U13781R01C100 Shield Graphics Library Users Guide

Document Number X94A-B-001-01

SEIKO EPSON CORPORATION

NOTICE

No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as, medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of Economy, Trade and Industry or other approval from another government agency.

All brands or product names mentioned herein are trademarks and/or registered trademarks of their respective companies.

SEIKO EPSON CORPORATION 2015, All rights reserved.

Seiko Epson Corporation

S1D13781 Issue Date 2015/07/02

Table of Contents
1 Introduction 6 2 Requirements 7 3 8

Hardware Installation 8 Connecting S5U13781R01C100 Shield to Arduino Due 8 Connecting the LCD 11 Connecting the Arduino Due to Development Platform 12

Software Installation 13 Installing Arduino Sketch 13 Installing the Arduino SAM Boards 13 Installing the S5U13781R01C100 Shield Graphics Library 15 Compiling and Running Example 18
4 Using the S5U13781R01C100 Shield Graphics Library with Sketch

Modifying an Existing Sketch 22 Creating a New Sketch 22 Using the Serial Monitor 23 Using Fonts with the S5U13781R01C100 Shield Graphics 24
5 Understanding the Graphics

Library 25 Modifying the Graphics Library 25 Customizing S1D13781 Initialization Values 26
6 Library Reference

S1d13781 Class 27 S1d13781::regWrite 27 28 S1d13781::regSetBits 28 S1d13781::memWriteByte 29 S1d13781::memWriteWord 29 S1d13781::memReadWord 29 30 S1d13781::memBurstReadBytes 30 S1d13781::memBurstWriteWords 30 S1d13781::memBurstReadWords 31

S1D13781 Issue Date 2015/07/02

Seiko Epson Corporation

S1d13781::lcdSetRotation 31 S1d13781::lcdSetColorDepth 32 S1d13781::lcdGetColorDepth 32 S1d13781::lcdGetStartAddress 33 S1d13781::lcdSetWidth 33 S1d13781::lcdGetWidth 33 S1d13781::lcdSetHeight 33 34 S1d13781::pipSetDisplayMode 34 S1d13781::pipGetDisplayMode 34 35 S1d13781::pipGetRotation 35 S1d13781::pipIsOrthogonal 35 S1d13781::pipSetColorDepth 35 36 S1d13781::pipGetBytesPerPixel 36 S1d13781::pipSetStartAddress 36 S1d13781::pipGetStartAddress 36 S1d13781::pipSetWidth 37 S1d13781::pipSetHeight 37 S1d13781::pipGetHeight 37 S1d13781::pipGetStride 37 S1d13781::pipSetPosition 37 S1d13781::pipGetPosition 38 S1d13781::pipSetFadeRate 38 S1d13781::pipGetFadeRate 38 S1d13781::pipSetAlphaBlendStep 39 S1d13781::pipGetAlphaBlendStep 39 S1d13781::pipSetAphaBlendRatio 39 S1d13781::pipGetAlphaBlendRatio 39 S1d13781::pipEnableTransparency 40 S1d13781::pipGetTransparency 40 S1d13781::pipSetTransColor 40

Seiko Epson Corporation

S1D13781 Issue Date 2015/07/02

Page 5

S1d13781::pipGetTransColor 40 S1d13781::pipSetupWindow 41 S1d13781::lcdSetLutEntry 41 42 S1d13781::lcdSetLutDefault 42 S1d13781_gfx Class 42 S1d13781_gfx::fillWindow 42 S1d13781_gfx::clearWindow 43 S1d13781_gfx::drawPixel 43 S1d13781_gfx::getPixel 44 S1d13781_gfx::drawLine 45 S1d13781_gfx::drawRect 45 S1d13781_gfx::drawFilledRect 46 S1d13781_gfx::drawPattern 47 S1d13781_gfx::freeFont 48 S1d13781_gfx::drawText 48 S1d13781_gfx::drawMultiLineText 48 S1d13781_gfx::measureText S1d13781_gfx::measureTextW 49 S1d13781_gfx::getFontHeight 49 S1d13781_gfx::getCharWidth S1d13781_gfx::getCharWidthW 50 S1d13781_gfx::getTextWidth S1d13781_gfx::getTextWidthW 50 S1d13781_gfx::captureFontIndexFile 50 S1d13781_gfx::copyArea 51
7 Change

S1D13781 Issue Date 2015/07/02

Seiko Epson Corporation

Page 6
1 Introduction

This document introduces the user to the S5U13781R01C100 Shield Graphics Library. The S5U13781R01C100 Shield Graphics Library is a software library designed to simplify the process of displaying graphics and text to a panel connected to a S5U13781R01C100 Shield.

The S5U13781R01C100 Shield is designed to be used with the Arduino Due microcontroller board. For details on the Arduino Due, refer to the Arduino website at For further details on the S1D13781, or the S5U13781R01C100 Shield, visit the Epson Electronics America Website at vdc.epson.com.

Note The S5U13781R01C100 Shield TFT Board can also be used to evaluate the low cost S1D13L01 LCD Controller which provides a similar feature set as the S1D13781. The S1D13L01 is designed as a lower cost option with a streamlined feature set. The following table shows the main differences between the S1D13781 and S1D13L01. For a complete feature list for each LCD controller, refer to the S1D13781 Hardware Functional Specification and S1D13L01 Hardware Functional Specification available at vdc.epson.com.

Feature Differences

S1D13L01

S1D13781

Display Interfaces

Active TFT Displays only

Passive STN and Active TFT Displays

BitBLT Support
More datasheets: L6R300D-560-C14 | L6R300D-480-C14 | L6R300D-190-C14 | L6R300D-560-C6 | L6R300D-480-C6 | L6R300D-240-C6 | L6R300D-120-C6 | L6R300D-190-C6 | L6R300D-240-C14 | L6R300D-120-C14


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived S5U13781R01C100 Datasheet file may be downloaded here without warranties.

Datasheet ID: S5U13781R01C100 511889