wio:wio-ledscript-fr
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wio:wio-ledscript-fr [2021/10/19 10:55] – [Format] phil45 | wio:wio-ledscript-fr [2024/04/01 10:24] (current) – [Conditions] phil45 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[: | ||
+ | [[: | ||
====== LEDScript ====== | ====== LEDScript ====== | ||
- | [[:france|{{ :hardware.png}}]][[:france|{{ : | + | [[:wio: |
- | [[: | + | **[[:wio:overview-fr|Vue d' |
- | | + | * [[: |
{{: | {{: | ||
Line 9: | Line 11: | ||
LEDScript fonctionne dans le contexte WIO, et peut être activé par les commandes Rocrail.\\ | LEDScript fonctionne dans le contexte WIO, et peut être activé par les commandes Rocrail.\\ | ||
C'est un simple fichier ASCII, qui peut être téléchargé dans le WIO.\\ | C'est un simple fichier ASCII, qui peut être téléchargé dans le WIO.\\ | ||
- | Les LEDs de couleur cibles doivent être supportées par la bibliothèque [[https:// | ||
\\ | \\ | ||
- | =====Conditions===== | ||
- | WIO version 295+.\\ | ||
- | Rocrail version 2.1.1042+.\\ | ||
+ | =====Format===== | ||
+ | ^ Seuls les sauts de ligne Unix sont autorisés. | ||
- | \\ | ||
- | =====Format===== | ||
Le format texte possède quelques restrictions: | Le format texte possède quelques restrictions: | ||
* Une ligne vierge arrêtera l' | * Une ligne vierge arrêtera l' | ||
Line 27: | Line 25: | ||
\\ | \\ | ||
- | =====File naming==== | + | =====Nommage de fichier==== |
- | The filename must be formatted like this: | + | Le nom de fichier doit être formaté comme ceci: |
< | < | ||
- | The number, < | + | Le numéro, < |
- | Example: | + | Exemple: |
< | < | ||
- | Zero, // | + | Zero, // |
\\ | \\ | ||
=====Instructions===== | =====Instructions===== | ||
- | ====Header==== | + | ====Entêtes==== |
- | The header just contains one line: | + | L' |
- | | '' | + | | '' |
- | | '' | + | | '' |
\\ | \\ | ||
- | ====LED | + | ====Définition |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | ''< | + | | ''< |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | The rgbip values can be left out, and in this case the last parsed values are used.\\ | + | Les valeurs |
- | *range: A 16bit RGB value range. Example: Range from 150 to 220. Value = 220+(150*256)=38620 | + | *plage: Une plage de valeur |
- | *1: for increase until the next l command. With + the LEDs stays on, with - not. See example below (Ver 377+) | + | *1: pour augmenter jusqu' |
\\ | \\ | ||
- | ====LED | + | ====Réinitialisation |
- | If '' | + | Si '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
====LED OFF==== | ====LED OFF==== | ||
- | At a LED(output) off command, the following fields are used to reset LEDs, if the LEDs are still on after the script | + | Lors d'une commande d' |
- | | '' | + | | '' |
- | | '' | + | | '' |
\\ | \\ | ||
- | ====Footer==== | + | ====Bas de page==== |
- | | '' | + | | '' |
\\ | \\ | ||
- | =====Upload===== | + | =====Téléchargement===== |
{{ : | {{ : | ||
- | Uploading | + | Le téléchargement des fichiers |
- | __**[[: | + | __**[[: |
\\ | \\ | ||
- | =====Activating===== | + | =====Activation===== |
- | ====Output==== | + | ====Sortie==== |
- | Set the address value greater then 100, and < | + | Régler la valeur de l' |
- | ====Car Function==== | + | ====Fonction Voiture==== |
- | Set the LED address value greater then 100, and < | + | Régler la valeur de l' |
\\ | \\ | ||
- | =====Examples===== | + | =====Exemples===== |
< | < | ||
# start 0=endless loop, 1...255=iterations | # start 0=endless loop, 1...255=iterations | ||
Line 139: | Line 137: | ||
</ | </ | ||
- | ==Increase | + | ==Augmenter le numéro de LED (V377+):== |
< | < | ||
# warning lights | # warning lights | ||
Line 178: | Line 176: | ||
</ | </ | ||
- | ==increase/decrease brightness | + | ==Augmenter/Diminuer la luminosité |
< | < | ||
#brightinc | #brightinc | ||
Line 202: | Line 200: | ||
\\ | \\ | ||
- | =====WIO LEDScript | + | =====Analyseur |
- | The WIO parser is very simple, | + | L' |
- | After reading a line, the first character is checked as listed in the **[[# | + | Après la lecture d'une ligne, le premier caractère est vérifié comme indiqué dans le paragraphe |
- | If a number is expected, the C function | + | Si un nombre est attendu, la fonction |
- | Because of the simple | + | En raison de la nature |
< | < | ||
i80 // brightness 80 of 255 | i80 // brightness 80 of 255 | ||
Line 212: | Line 210: | ||
end | end | ||
</ | </ | ||
- | But the total line length, incl. linefeed, should not exceed the 64 byte boundary.\\ | + | Mais la longueur de ligne totale, incluant le saut de ligne, ne doit pas excéder la limite de 64 octets.\\ |
+ | |||
+ | ====Exemples de ledscript sur le forum==== | ||
+ | [[https:// | ||
wio/wio-ledscript-fr.1634633718.txt.gz · Last modified: 2021/10/19 10:55 by phil45