-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathledclient.1
More file actions
353 lines (285 loc) · 7 KB
/
ledclient.1
File metadata and controls
353 lines (285 loc) · 7 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
.TH ledclient 1 "30 July 2020" "version 0.7"
.Sh NAME
ledclient - Communicate with an AnimatedLEDStrip server
.SH SYNOPSIS
.B ledclient help
.B ledclient
.RB { animations | info | running }
.RB { "--server IP" | "-s IP" }
.RB { "--port PORT" | "-p PORT" }
.RB [ "--format FORMAT" ]
.B ledclient end
.RB { "--server IP" | "-s IP" }
.RB { "--port PORT" | "-p PORT" }
.RB { "--id ID" }
.B ledclient start
.RB { "--server IP" | "-s IP" }
.RB { "--port PORT" | "-p PORT" }
.RB [ "--animation ANIM_NAME" ]
.RB [ --color
.IR "COLORS " ...]
.RB [ "--center PIXEL" ]
.RB [ "--continuous"
.IR CONTINUITY ]
.RB [ "--delay TIME_MILLISECONDS" ]
.RB [ "--delayMod MULTIPLIER" ]
.RB [ "--direction
.IR DIRECTION ]
.RB [ "--distance PIXELS" ]
.RB [ "--id ID" ]
.RB [ "--section SECT" ]
.RB [ "--spacing PIXELS" ]
.I COLORS
:= A comma-delimited string of color values
(e.g. "255,65535" or "0xFF, 0xFFFF")
.I CONTINUITY
:=
.RB { CONTINUOUS | TRUE | NONCONTINUOUS | FALSE | DEFAULT | NULL }
.I DIRECTION
:=
.RB { FORWARD | BACKWARD }
.SH DESCRIPTION
Communicate with an AnimatedLEDStrip server.
Connects to the specified server, performs the operation specified, then disconnects.
.B ledclient animations
prints a list of the animations the server supports.
.B ledclient info
prints information about the ledstrip and server.
.B ledclient running
prints information about currently running animations.
.BR "ledclient animations" ", " "ledclient info" " and " "ledclient running"
support modification of the output format with
.BR "--format FORMAT" .
See the
.B FORMAT STRINGS
section for more details.
.B ledclient start
will start a new animation.
.B ledclient end
will stop a currently running animation.
.SH OPTION
.TP
.B --server, -s IP
Set the IP to connect to.
.TP
.B --port, -p PORT
Set the port to connect to.
.TP
.B --format FORMAT
Set how to the format the output.
.TP
.B --animation ANIM_NAME
Set the animation to run.
.TP
.BI "--color " COLORS
Add a new ColorContainer.
.I COLORS
is a comma-delimited list of colors
(e.g. "255,65535" or "0xFF, 0xFFFF").
If the base is not decimal, specify it with a prefix.
Can be specified multiple times.
.TP
.B --center PIXEL
The pixel at the center of an animation.
Defaults to the center of the strip.
.TP
.BI "--continuous " CONTINUITY
If the animation will run endlessly until stopped.
.I CONTINUITY
is one of
.BR CONTINUOUS ", " TRUE ", " NONCONTINUOUS ", " FALSE ", " DEFAULT ", or " NULL .
.BR CONTINUOUS " or " TRUE
means it will run continuously.
.BR NONCONTINUOUS " or " FALSE
means it will not run continuously.
.BR DEFAULT " or " NULL
means it will use the default repetitiveness of the animation.
.TP
.B --delay TIME_MILLISECONDS
Delay time (in milliseconds) used in the animation.
.TP
.B --delayMod MULTIPLIER
Multiplier for delay.
.TP
.BI "--direction " DIRECTION
The direction the animation will appear to move.
.I DIRECTION
is one of
.B FORWARD
or
.B BACKWARD
.TP
.B --distance PIXELS
The distance an animation will travel from its center.
Defaults to running until the ends of the strip.
.TP
.B --id ID
ID for the animation.
Used by server and clients to identify a specific animation.
.TP
.B --section SECTION
The id of the section of the strip that will be running the whole animation
(not necessarily the section running this animation, such as if this is a subanimation).
This is the section that ColorContainer blend preparation will be based upon.
An empty string means the whole strip.
.TP
.B --spacing PIXELS
Spacing used in the animation.
.SH FORMAT STRINGS
The
.BR animations ", " info ", and " running
commands support customization of the output format.
.SS ledclient animations
.TP
.BR %name ", " %n
The name used to identify the animation.
.TP
.BR %abbr ", " %a
The abbreviation that can be used to identify the animation.
.TP
.BR %description ", " %d
A description of the animation.
.TP
.BR %signatureFile ", " %f
The name of the file that holds the signature of an example run of the animation.
.TP
.BR %repetitive ", " %r ", " %R
Can this animation be repeated
(see
.UR
https://github.com/AnimatedLEDStrip/AnimatedLEDStrip/wiki/Repetitive-vs-NonRepetitive
.US
).
.BR %repetitive " and " %r
print the value as "true" or "false" while
.B %R
prints the value as "1" or "0".
.TP
.BR %minimumColors ", " %m
The number of required colors for this animation. Any missing colors will be replaced with
.B CCBlack
(predefined ColorContainer containing the color 0x000000).
.TP
.BR %unlimitedColors ", " %u ", " %U
Can this animation take an unlimited number of colors
.BR %unlimitedColors " and " %u
print the value as "true" or "false" while
.B %U
prints the value as "1" or "0".
.TP
.BR %center ", " %ce
Does this animation use the
.B center
parameter. Printed as
.B USED
or
.BR NOTUSED .
.TP
.BR %delay ", " %de
Does this animation use the
.B delay
parameter. Printed as
.B USED
or
.BR NOTUSED .
.TP
.BR %direction ", " %dr
Does this animation use the
.B direction
parameter. Printed as
.B USED
or
.BR NOTUSED .
.TP
.BR %distance ", " %ds
Does this animation use the
.B distance
parameter. Printed as
.B USED
or
.BR NOTUSED .
.TP
.BR %spacing ", " %sp
Does this animation use the
.B spacing
parameter. Printed as
.B USED
or
.BR NOTUSED .
.TP
.BR %delayDefault ", " %DE
Default value for the
.B delay
parameter.
.TP
.BR %distanceDefault ", " %DS
Default value for the
.B distance
parameter.
.TP
.BR %spacingDefault ", " %SP
Default value for the
.B spacing
parameter.
.SS ledclient info
.TP
.BR %numLEDs ", " %n
Number of LEDs in the strip.
.TP
.BR %pin ", " %p
Physical pin the strip is connected to.
.TP
.BR %imageDebugging ", " %i
If image debugging is enabled.
.TP
.BR %fileName ", " %f
File that image debugging output is written to.
.TP
.BR %rendersBeforeSave ", " %r
Renders between image debugging writes.
.TP
.BR %threadCount ", " %t
Number of threads used by animations.
.SS ledclient running
.TP
.BR %animation ", " %a
The name of the animation being run.
.TP
.BR %colors ", " %c
The list of ColorContainers used by the animation.
.TP
.BR %center ", " %ce
The pixel at the center of the animation.
Defaults to the center of the strip.
.TP
.BR %continuous ", " %co
If the animation will run endlessly until stopped.
.B DEFAULT
means it will use the default repetitiveness of the animation.
.TP
.BR %delay ", " %de
Delay time (in milliseconds) used in the animation.
.TP
.BR %delayMod ", " %dm
Multiplier for
.BR delay .
.TP
.BR %direction ", " %dr
The direction the animation appears to move.
.TP
.BR %distance ", " %ds
The distance an animation will travel from its center.
Defaults to the length of the strip, meaning it will run until the ends of the strip.
.TP
.BR %id ", " %i
ID for the animation.
Used by server and clients to identify a specific animation.
.TP
.BR %section ", " %se
The id of the section of the strip that will be running the whole animation
(not necessarily the section running this animation, such as if this is a subanimation).
This is the section that ColorContainer blend preparation will be based upon.
An empty string means the whole strip.
.TP
.BR %spacing ", " %sp
Spacing used in the animation.