Skip to content

Commit e3a83c8

Browse files
committed
chore: update example files
1 parent b1791be commit e3a83c8

File tree

4 files changed

+263
-3
lines changed

4 files changed

+263
-3
lines changed

example/example.usp

Whitespace-only changes.

example/example1.usp

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/*******************************************************************************************
2+
Compiler Directives
3+
(Uncomment and declare compiler directives as needed)
4+
*******************************************************************************************/
5+
// #ENABLE_DYNAMIC
6+
// #SYMBOL_NAME
7+
// #HINT ""
8+
// #DEFINE_CONSTANT
9+
// #CATEGORY
10+
#PRINT_TO_TRACE
11+
// #DIGITAL_EXPAND
12+
// #ANALOG_SERIAL_EXPAND
13+
// #OUTPUT_SHIFT
14+
// #HELP_PDF_FILE ""
15+
#DEFAULT_VOLATILE
16+
#ENABLE_STACK_CHECKING
17+
#ENABLE_TRACE
18+
#ENCODING_ASCII
19+
// #ENCODING_UTF16
20+
// #ENCODING_INHERIT_FROM_PARENT
21+
// #ENCODING_INHERIT_FROM_PROGRAM
22+
/*
23+
#HELP_BEGIN
24+
(add additional lines of help lines)
25+
#HELP_END
26+
*/
27+
28+
/*******************************************************************************************
29+
Include Libraries
30+
(Uncomment and include additional libraries as needed)
31+
*******************************************************************************************/
32+
// #CRESTRON_LIBRARY ""
33+
// #USER_LIBRARY ""
34+
35+
/*******************************************************************************************
36+
DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS
37+
(Uncomment and declare inputs and outputs as needed)
38+
*******************************************************************************************/
39+
// DIGITAL_INPUT
40+
// ANALOG_INPUT
41+
// STRING_INPUT
42+
// BUFFER_INPUT
43+
44+
// DIGITAL_OUTPUT
45+
// ANALOG_OUTPUT
46+
// STRING_OUTPUT
47+
48+
/*******************************************************************************************
49+
SOCKETS
50+
(Uncomment and define socket definitions as needed)
51+
*******************************************************************************************/
52+
// TCP_CLIENT
53+
// TCP_SERVER
54+
// UDP_SOCKET
55+
56+
/*******************************************************************************************
57+
Parameters
58+
(Uncomment and declare parameters as needed)
59+
*******************************************************************************************/
60+
// INTEGER_PARAMETER
61+
// SIGNED_INTEGER_PARAMETER
62+
// LONG_INTEGER_PARAMETER
63+
// SIGNED_LONG_INTEGER_PARAMETER
64+
// STRING_PARAMETER
65+
66+
/*******************************************************************************************
67+
Parameter Properties
68+
(Uncomment and declare parameter properties as needed)
69+
*******************************************************************************************/
70+
/*
71+
#BEGIN_PARAMETER_PROPERTIES parameter_variable, parameter_variable, ...
72+
// propValidUnits = // unitString or unitDecimal|unitHex|unitPercent|unitCharacter|unitTime|unitTicks;
73+
// propDefaultUnit = // unitString, unitDecimal, unitHex, unitPercent, unitCharacter, unitTime or unitTicks;
74+
// propBounds = lower_bound , upper_bound;
75+
// propDefaultValue = ; // or, propDefaultValue = "";
76+
// propList = // { "value" , "label" } , { "value" , "label" } , ... ;
77+
// propShortDescription = "status_bar_hint_text";
78+
// #BEGIN_PROP_FULL_DESCRIPTION line_1... line_2... line_n #END_PROP_FULL_DESCRIPTION
79+
// #BEGIN_PROP_NOTES line_1... line_2... line_n #END_PROP_NOTES
80+
#END_PARAMETER_PROPERTIES
81+
*/
82+
83+
/*******************************************************************************************
84+
Structure Definitions
85+
(Uncomment and define structure definitions as needed)
86+
Note: Be sure to initialize all declared STRING variables as needed
87+
For example, in Function Main: struct.myString = "";
88+
*******************************************************************************************/
89+
/*
90+
STRUCTURE MyStruct1
91+
{
92+
};
93+
94+
MyStruct1 struct;
95+
*/
96+
97+
/*******************************************************************************************
98+
Global Variables
99+
(Uncomment and declare global variables as needed)
100+
Note: Be sure to initialize all declared STRING variables as needed
101+
For example, in Function Main: myString = "";
102+
*******************************************************************************************/
103+
// INTEGER
104+
// LONG_INTEGER
105+
// SIGNED_INTEGER
106+
// SIGNED_LONG_INTEGER
107+
// STRING
108+
109+
/*******************************************************************************************
110+
Functions
111+
(Add any additional functions here)
112+
Note: Functions must be physically placed before the location in
113+
the code that calls them.
114+
*******************************************************************************************/
115+
116+
117+
/*******************************************************************************************
118+
Event Handlers
119+
(Uncomment and declare additional event handlers as needed)
120+
*******************************************************************************************/
121+
122+
123+
/*******************************************************************************************
124+
Main()
125+
Uncomment and place one-time startup code here
126+
(This code will get called when the system starts up)
127+
*******************************************************************************************/
128+
Function Main() {
129+
print("Hello, Example 1!\n");
130+
}

example/example2.usp

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/*******************************************************************************************
2+
Compiler Directives
3+
(Uncomment and declare compiler directives as needed)
4+
*******************************************************************************************/
5+
// #ENABLE_DYNAMIC
6+
// #SYMBOL_NAME
7+
// #HINT ""
8+
// #DEFINE_CONSTANT
9+
// #CATEGORY
10+
#PRINT_TO_TRACE
11+
// #DIGITAL_EXPAND
12+
// #ANALOG_SERIAL_EXPAND
13+
// #OUTPUT_SHIFT
14+
// #HELP_PDF_FILE ""
15+
#DEFAULT_VOLATILE
16+
#ENABLE_STACK_CHECKING
17+
#ENABLE_TRACE
18+
#ENCODING_ASCII
19+
// #ENCODING_UTF16
20+
// #ENCODING_INHERIT_FROM_PARENT
21+
// #ENCODING_INHERIT_FROM_PROGRAM
22+
/*
23+
#HELP_BEGIN
24+
(add additional lines of help lines)
25+
#HELP_END
26+
*/
27+
28+
/*******************************************************************************************
29+
Include Libraries
30+
(Uncomment and include additional libraries as needed)
31+
*******************************************************************************************/
32+
// #CRESTRON_LIBRARY ""
33+
// #USER_LIBRARY ""
34+
35+
/*******************************************************************************************
36+
DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS
37+
(Uncomment and declare inputs and outputs as needed)
38+
*******************************************************************************************/
39+
// DIGITAL_INPUT
40+
// ANALOG_INPUT
41+
// STRING_INPUT
42+
// BUFFER_INPUT
43+
44+
// DIGITAL_OUTPUT
45+
// ANALOG_OUTPUT
46+
// STRING_OUTPUT
47+
48+
/*******************************************************************************************
49+
SOCKETS
50+
(Uncomment and define socket definitions as needed)
51+
*******************************************************************************************/
52+
// TCP_CLIENT
53+
// TCP_SERVER
54+
// UDP_SOCKET
55+
56+
/*******************************************************************************************
57+
Parameters
58+
(Uncomment and declare parameters as needed)
59+
*******************************************************************************************/
60+
// INTEGER_PARAMETER
61+
// SIGNED_INTEGER_PARAMETER
62+
// LONG_INTEGER_PARAMETER
63+
// SIGNED_LONG_INTEGER_PARAMETER
64+
// STRING_PARAMETER
65+
66+
/*******************************************************************************************
67+
Parameter Properties
68+
(Uncomment and declare parameter properties as needed)
69+
*******************************************************************************************/
70+
/*
71+
#BEGIN_PARAMETER_PROPERTIES parameter_variable, parameter_variable, ...
72+
// propValidUnits = // unitString or unitDecimal|unitHex|unitPercent|unitCharacter|unitTime|unitTicks;
73+
// propDefaultUnit = // unitString, unitDecimal, unitHex, unitPercent, unitCharacter, unitTime or unitTicks;
74+
// propBounds = lower_bound , upper_bound;
75+
// propDefaultValue = ; // or, propDefaultValue = "";
76+
// propList = // { "value" , "label" } , { "value" , "label" } , ... ;
77+
// propShortDescription = "status_bar_hint_text";
78+
// #BEGIN_PROP_FULL_DESCRIPTION line_1... line_2... line_n #END_PROP_FULL_DESCRIPTION
79+
// #BEGIN_PROP_NOTES line_1... line_2... line_n #END_PROP_NOTES
80+
#END_PARAMETER_PROPERTIES
81+
*/
82+
83+
/*******************************************************************************************
84+
Structure Definitions
85+
(Uncomment and define structure definitions as needed)
86+
Note: Be sure to initialize all declared STRING variables as needed
87+
For example, in Function Main: struct.myString = "";
88+
*******************************************************************************************/
89+
/*
90+
STRUCTURE MyStruct1
91+
{
92+
};
93+
94+
MyStruct1 struct;
95+
*/
96+
97+
/*******************************************************************************************
98+
Global Variables
99+
(Uncomment and declare global variables as needed)
100+
Note: Be sure to initialize all declared STRING variables as needed
101+
For example, in Function Main: myString = "";
102+
*******************************************************************************************/
103+
// INTEGER
104+
// LONG_INTEGER
105+
// SIGNED_INTEGER
106+
// SIGNED_LONG_INTEGER
107+
// STRING
108+
109+
/*******************************************************************************************
110+
Functions
111+
(Add any additional functions here)
112+
Note: Functions must be physically placed before the location in
113+
the code that calls them.
114+
*******************************************************************************************/
115+
116+
117+
/*******************************************************************************************
118+
Event Handlers
119+
(Uncomment and declare additional event handlers as needed)
120+
*******************************************************************************************/
121+
122+
123+
/*******************************************************************************************
124+
Main()
125+
Uncomment and place one-time startup code here
126+
(This code will get called when the system starts up)
127+
*******************************************************************************************/
128+
Function Main() {
129+
print("Hello, Example 2!\n");
130+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ MyStruct1 struct;
125125
Uncomment and place one-time startup code here
126126
(This code will get called when the system starts up)
127127
*******************************************************************************************/
128-
// Function Main() {
129-
130-
// }
128+
Function Main() {
129+
print("Hello, Library!\n");
130+
}

0 commit comments

Comments
 (0)