Datasheet

2011 Microchip Technology Inc. DS01368A-page 23
AN1368
For example, if the Release note says:
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:
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.
Users can also create their own widgets and add to the
graphics library. See “References” for more details.
Module Button GOL
Heap for PIC24F 28
(per instance)
20 (per style
scheme)
Heap for PIC32 44
(per instance)
24 (per style
scheme)
RAM for PIC24F 8 32
RAM for PIC32 12 28
ROM for PIC24F 1002 2076
ROM for PIC32 2748 5400
Note: The RAM and ROM requirements for
PIC24F and PIC32 devices may be differ-
ent because of different microcontroller
architecture and different compilers.
Note: This example is indicative only. It is
recommended to see the release notes of
the Microchip Graphics Library to derive
the appropriate values for that particular
release.
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
File Category Button
Header Files GOL.h
Button.h
Chart.h
CheckBox.h
DigitalMeter.h
EditBox.h
Grid.h
GroupBox.h
ListBox.h
Meter.h
Picture.h
ProgressBar.h
RadioButton.h
RoundDial.h
Slider.h
StaticText.h
TextEntry.h
Window.h
<CustomWidget.h>
Configuration
Files
GraphicsConfig.h (to
select the usage of GOL and
its individual widgets)
Source files GOL.c
GOLFontDefault.c
Button.c
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>
Note: This list is for indication only. Refer to the
Microchip Graphics Library Help file for
the latest list of files.