参数资料
型号: AC164127-7
厂商: Microchip Technology
文件页数: 24/34页
文件大小: 0K
描述: BOARD DISPLAY CTLR PLUS S1D13517
特色产品: AC164127-7 Graphics Controller
标准包装: 1
系列: PICtail™ Plus
主要目的: 显示器,LCD 控制器
已用 IC / 零件: S1D13517
主要属性: 与 PIC32 入门套件和 Explorer 16 开发板一起使用
已供物品:
AN1368
USER MESSAGE INTERFACE
The user message interface is a sublayer of the GOL
which is enabled if the GOL is used. This sublayer is
used to facilitate the message passing between
widgets and user input. For example, if the user
presses a button, then a message is sent to a call back
function, called GOLMsgCallback() , where the
message indicating that the button is pressed is
checked and an action is taken. This callback function
must be present in the application code if the GOL is
being used, no matter if message passing is being
used or not. If the message passing is not used, the
function body must return a ‘ 1 ’.
Similar to GOLDraw() , GOLMsg() must be called
continuously in a loop inside the application code to
facilitate message collection and passing.
The usage of GOLDraw() , GOLDrawCallback() ,
GOLMsg() and GOLMsgCallback() are explained in
Example 4 , Example 5 and Example 6 .
APPLICATION LAYER
In this layer, the user has full control of the application.
Initially, the user must initialize the Microchip Graphics
Library. The initialization is done by calling GOLInit() if
all the layers are being used, InitGraph() if the GOL
is not being used but the Primitive and Display Driver
layers are being used, or by calling ResetDevice() if
only the Display Driver layer is being used. After the
initialization routine, the Primitive and Driver layers’ APIs
can be called to achieve the required draw functionality.
To use GOL objects (like buttons), the widgets must be
created by calling the widget’s create function (e.g.,
BtnCreate() ), one by one, until all of the widgets are
created. This step will not display the widgets. The
created widgets are drawn on the screen when the
GOLDraw() function is called repeatedly in a while loop.
The messages are processed by calling the GOLMsg()
inside the same loop, as shown in Example 5 .
DS01368A-page 24
After GOLDraw() is done, messages are received
from the touch screen driver and hard buttons driver.
The obtained message is passed to GOLMsg() to
process and to output a widget-specific message. For
example, it converts a “USER TOUCHED POSITION
100, 100” message to BUTTON1_PRESSED .
Additionally, the application must possess the
GOLDrawCallback() and GOLMsgCallback()
functions .
If custom drawing is not done, then the draw callback is
used, as shown in Example 4 .
EXAMPLE 4:
WORD GOLDrawCallback(void)
{
return (1);
}
The message callback handles the processed
message sent out by the widgets, as shown in
If the application already uses a main loop,
GOLDraw() and GOLMsg() can be called within the
loop (see Example 5 ).
Note 1: Refer to the application note, AN1136, “ How
to Use Widgets in Microchip Graphics
Library ” for creating a simple application.
2: Refer to the Microchip Graphics Library
Help file for the list of related application
notes.
? 2011 Microchip Technology Inc.
相关PDF资料
PDF描述
0982661103 CBL 39POS 0.5MM JMPR TYPE A 4"
MT2000-3.0-X-SP HEAT SHRINK TUBING
ISL6506ACBZ-T IC PWR SUPPLY CTRLR/MONITR 8SOIC
REC5-4815DRW/H4/C CONV DC/DC 5W 36-72VIN +/-15VOUT
0982661102 CBL 39POS 0.5MM JMPR TYPE D 4"
相关代理商/技术参数
参数描述
AC164127-8 功能描述:子卡和OEM板 Graph Display Truly 5.7" 640x480 Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164127-9 功能描述:子卡和OEM板 Graphics Display 7" 800x480 Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164128 功能描述:子卡和OEM板 dsPICDEM Motor Cntrl PICtail Plus RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164129 功能描述:子卡和OEM板 Audio PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164130 功能描述:网络开发工具 ECAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:Rabbit Semiconductor 产品:Development Kits 类型:Ethernet to Wi-Fi Bridges 工具用于评估:RCM6600W 数据速率:20 Mbps, 40 Mbps 接口类型:802.11 b/g, Ethernet 工作电源电压:3.3 V