AN1368
For example, if the Release note says:
Users can also create their own widgets and add to the
Module
Button
GOL
graphics library. See “References” for more details.
Heap for PIC24F
28
20 (per style
File Category
Button
(per instance)
scheme)
Header Files
?
GOL.h
Heap for PIC32
RAM for PIC24F
RAM for PIC32
ROM for PIC24F
ROM for PIC32
44
(per instance)
8
12
1002
2748
24 (per style
scheme)
32
28
2076
5400
?
?
?
?
?
?
Button.h
Chart.h
CheckBox.h
DigitalMeter.h
EditBox.h
Grid.h
?
GroupBox.h
Note:
The RAM and ROM requirements for
?
ListBox.h
PIC24F and PIC32 devices may be differ-
ent because of different microcontroller
architecture and different compilers.
For a PIC24F application using only two buttons, a
RAM of 8 bytes, ROM of 1002 bytes and the required
heap memory would be 2 x 28 = 56 Bytes.
If one style scheme is used, then a heap memory of
20 bytes would be required.
EQUATION 3:
?
?
?
?
?
?
?
?
?
?
Meter.h
Picture.h
ProgressBar.h
RadioButton.h
RoundDial.h
Slider.h
StaticText.h
TextEntry.h
Window.h
<CustomWidget.h>
Total Heap (Minimum Required Heap) = 20
(for the Style Scheme) + (2 x 28) = 76 bytes
Total RAM (for Graphics) = 32 (for GOL) + 8 = 40 bytes
Configuration
Files
? GraphicsConfig.h (to
select the usage of GOL and
its individual widgets)
Source files
?
GOL.c
Note:
This example is indicative only. It is
recommended to see the release notes of
?
?
GOLFontDefault.c
Button.c
the Microchip Graphics Library to derive
the appropriate values for that particular
release.
The GOL depends on the Primitive and the Display Driver
layers. A function, GOLDraw() , must be called
continuously in a loop to simplify the drawing of widgets.
Additionally, a function, GOLDrawCallback() , must be
implemented in the application code. This is used for
custom drawing which is explained in the Help file.
Generally, this function can just return: TRUE.
To include the GOL, along with the files required for the
Primitive layer and Display Driver layer, the following
files must be added to the project. See the Help file for
the latest list of files. If the GOL is used, then in the
GraphicsConfig.h file, the macro, #define
USE_GOL , must be defined. Individual macros for the
widgets used, such as #define USE_BUTTON , must
also be defined. If these individual macros are not
defined, the widgets will not be compiled even if they
are included in the project.
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
Chart.c
CheckBox.c
DigitalMeter.c
EditBox.c
Grid.c
GroupBox.c
ListBox.c
Meter.c
Picture.c
ProgressBar.c
RadioButton.c
RoundDial.c
Slider.c
StaticText.c
TextEntry.c
Window.c
<CustomWidget.c>
? 2011 Microchip Technology Inc.
Note:
This list is for indication only. Refer to the
Microchip Graphics Library Help file for
the latest list of files.
DS01368A-page 23
相关PDF资料
AC164130 BOARD DAUGHT PICTL PLUS ECAN/LIN
AC164131 BOARD DAUGHTER USB PICTAIL PLUS
AC164132 BOARD DAUGHTER PICTAIL ETHERNET
AC164141 BOARD SMART CARD / SIM CARD
AC164142 BOARD DAUGHTER PWR LINE MODEM
AC164144 LLC PICTAIL PLUS DAUGHTR BRD
AC164145 BOARD DAUGHTER PWR LINE MODEM
AC243005-1 KIT MEMORY SERIAL SUPERFLASH 1
相关代理商/技术参数
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
AC164130-2 功能描述:子卡和OEM板 CAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164131 功能描述:子卡和OEM板 USB PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164132 功能描述:以太网开发工具 100Mbps Ethernet PICtail Plus DB RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
AC164133 功能描述:电源管理IC开发工具 dsPIC BuckBoost PICtail Daughtr Brd RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
AC164133 制造商:Microchip Technology Inc 功能描述:Buck/Boost Converter PICtail P