
command
is the command you want to run. Almost all the functions available in the classic
programming APIs are available as commands. You need to respect neither the case nor the
underlined characters in the command name.
[parameters]
logically are the parameters needed by the command.
At any time, the command line API executables can provide a rather detailed help. Use for instance:
C:\>
executable
/help
to know the list of available commands for a given command line API executable, or even:
C:\>
executable
command
/help
to obtain a detailed description of the parameters of a command.
8.3. Control of the Display function
To control the Display function of your Yocto-Display, you need the YDisplay executable file.
For instance, you can launch:
C:\>
YDisplay
any
-layer 0 drawText 64 32 CENTER
"Hello world!"
This example uses the "
any
" target to indicate that we want to work on the first Display function found
among all those available on the connected Yoctopuce modules when running. This prevents you
from having to know the exact names of your function and of your module.
But you can use logical names as well, as long as you have configured them beforehand. Let us
imagine a Yocto-Display module with the
YD128X32-123456
serial number which you have called
"
MyModule
", and its display function which you have renamed "
MyFunction
". The five following calls
are strictly equivalent (as long as
MyFunction
is defined only once, to avoid any ambiguity).
C:\>
YDisplay YD128X32-123456.display describe
C:\>
YDisplay YD128X32-123456.MyFunction describe
C:\>
YDisplay MyModule.display describe
C:\>
YDisplay MyModule.MyFunction describe
C:\>
YDisplay MyFunction describe
To work on all the Display functions at the same time, use the "
all
" target.
C:\>
YDisplay
all
describe
For more details on the possibilities of the
YDisplay
executable, use:
C:\>
YDisplay
/help
8.4. Control of the module part
Each module can be controlled in a similar way with the help of the
YModule
executable. For
example, to obtain the list of all the connected modules, use:
C:\>
YModule inventory
You can also use the following command to obtain an even more detailed list of the connected
modules:
8. Using the Yocto-Display in command line
32
www.yoctopuce.com
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...