-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathadaGfxDisplay.xml
67 lines (59 loc) · 3.93 KB
/
adaGfxDisplay.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<TcMenuPlugin name="%adafruit.manual.name"
id="7c486068-9879-459f-89ee-9522366524a3"
subsystem="DISPLAY"
requiresDesigner="2.0" needsTheme="true"
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://tcmenu.github.io/documentation/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
<SupportedPlatforms>
<PlatformGroup>Arduino</PlatformGroup>
</SupportedPlatforms>
<Description>%adafruit.manual.desc</Description>
<Documentation link="https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/tcmenu-plugins/adafruit_gfx-renderer-plugin/"/>
<RequiredLibraries/>
<ImageFile>adagfx-color.jpg</ImageFile>
<Properties>
<Property id="DISPLAY_VARIABLE" name="%core.display.variable" initial="gfx" desc="%core.display.variable.desc" type="variable" />
<Property id="DISPLAY_TYPE" name="%core.display.variable.type" initial="Adafruit_ILI9341" desc="%core.display.variable.type.desc" type="variable" />
<Property id="DISPLAY_CONFIG" name="%core.display.config" initial="" desc="%core.display.config.desc" type="variable" />
<Property id="DISPLAY_BUFFERED" name="%core.display.is.buffered" initial="false" desc="core.display.is.buffered.desc" type="boolean" />
<Property id="UPDATES_PER_SEC" name="%core.screen.updates.sec" initial="5" desc="core.screen.updates.sec.desc" type="int" min="1" max="10"/>
<Property id="DISPLAY_BUFFER_SIZE" name="core.display.buffer.size" initial="0" type="int" min="0" max="320"
desc="%core.display.buffer.size.desc" whenProperty="DISPLAY_BUFFERED" isValue="false"/>
</Properties>
<ApplicabilityDefs/>
<SourceFiles>
<Replacement find="#define DISPLAY_HAS_MEMBUFFER (true|false)" replace="#define DISPLAY_HAS_MEMBUFFER ${DISPLAY_BUFFERED}"/>
<Replacement find="Adafruit_Driver" replace="${DISPLAY_TYPE}"/>
<Replacement find="Adafruit_Header" replace="${DISPLAY_TYPE}"/>
<SourceFile name="adaGfxDriver/tcMenuAdaFruitGfxMono.cpp" whenProperty="DISPLAY_BUFFERED" isValue="true"/>
<SourceFile name="adaGfxDriver/tcMenuAdaFruitGfxMono.h" whenProperty="DISPLAY_BUFFERED" isValue="true"/>
<SourceFile name="adaGfxDriver/tcMenuAdaFruitGfx.cpp" whenProperty="DISPLAY_BUFFERED" isValue="false"/>
<SourceFile name="adaGfxDriver/tcMenuAdaFruitGfx.h" whenProperty="DISPLAY_BUFFERED" isValue="false"/>
</SourceFiles>
<IncludeFiles>
<Header name="tcMenuAdaFruitGfx.h" inSource="true" whenProperty="DISPLAY_BUFFERED" isValue="false"/>
<Header name="tcMenuAdaFruitGfxMono.h" inSource="true" whenProperty="DISPLAY_BUFFERED" isValue="true"/>
</IncludeFiles>
<GlobalVariables>
<Variable name="${DISPLAY_VARIABLE}" type="${DISPLAY_TYPE}" export="only" />
<Variable name="${DISPLAY_CONFIG}" type="AdaColorGfxMenuConfig" export="only" whenProperty="DISPLAY_CONFIG" isNotValue=""/>
<Variable name="${DISPLAY_VARIABLE}Drawable" type="AdafruitDrawable" export="true">
<Param ref="${DISPLAY_VARIABLE}"/>
<Param value="${DISPLAY_BUFFER_SIZE}"/>
</Variable>
<Variable name="renderer" type="GraphicsDeviceRenderer" export="true">
<Param value="30"/>
<Param value="applicationInfo.name"/>
<Param ref="${DISPLAY_VARIABLE}Drawable"/>
</Variable>
</GlobalVariables>
<SetupFunctions>
<Function object="renderer" name="setUpdatesPerSecond">
<Param value="${UPDATES_PER_SEC}"/>
</Function>
<Function name="setGraphicsConfiguration" object="renderer" whenProperty="DISPLAY_CONFIG" isNotValue="">
<Param ref="${DISPLAY_VARIABLE}"/>
<Param ref="${DISPLAY_CONFIG}"/>
</Function>
</SetupFunctions>
</TcMenuPlugin>