This is an old revision of the document!
Table of Contents
Bitmaps WIO Utilisateur
Système de fichier
Le SPIFFS, le système de fichier SPI Flash, est requit pour être capable de Télécharger les images définies par l'utilisateur au sketch WIO.
Voir: Firmware WIO
Le format AMP (ASCII-MAP)
Pour rendre facile la définition d'un petit bitmap/icône, un format de fichier texte ASCII-MAP est utilisé.
Le format du nom de fichier est défini comme suit:
<number>.amp
Le nombre est dans la plage entre 0 et 999.
La taille maximale est de 128x64 pixels.
Astuce: Il est recommandé d'utiliser un simple éditeur de texte avec une police à espacement fixe comme Courier.
Exemple
Les lignes commençant par un '#' sont considérés comme des commentaires.
Toutes les autres lignes contiennent des X et des espace blanc. N'importe quel caractère peut être utilisé comme espace blanc, à l'exclusion de 'x' et 'X'.
Dans l'exemple suivant les blancs sont utilisés comme espace blanc.
La largueur et la hauteur bitmap/icône sont calculés automatiquement.
Un 'X' représente un pixel affiché qui doit être allumé.
# DB, Deutsch Bahn, Logo XXXXXXXXXXX X X X XXX XXX X X X X X X X X X X XXX X X X X X X X X XXX XXX X X X XXXXXXXXXXX
La commande d'affichage {b#} est utilisé pour le rendre visible.
Voir: Commandes d'afficheur
Le contenu du texte dans Rocrail pour cet exemple:
{E} {L0X0b55X18} Deutsche Bahn {L2X0b56X18} Nederlandse Spoorwegen {L4X0b999} {P}
(55.amp est la DB, 56.amp la NS, et 999.amp le logo Rocrail.)
Téléchargement par le Navigateur WEB
Cette méthode est seulement disponible pour quatre minutes après le démarrage WIO. |
Obtenir le nom d'hôte ou l'IP du WIO
Open the WEB Browser
Click on the Tripple Dot button on the WIO Setup dialog, or type the IP or hostname of the WIO in the WEB Browser like this:
http://192.168.100.140
The following page will show up:
Click on the "List files…" button to change to the file listing page:
The directory structure is kept flat for best performance.
Actions
Remove
Remove the listed file from the WIO.
Download
Download the listed file from the WIO to the local file system.
Choose file
Select the wanted file for uploading.
Upload
Transfer the selected file to the WIO.
Create AMP (ASCII-MAP) with Rocview
2.1.350+
- Put Rocview in edit mode.
- Select a region with symbols.
- Choose the selection action AMP, and click on OK.
- A save as file dialog will popup.
The AMP data are also available on the clipboard, and can be pasted in an editor:
- Open an editor, and paste the AMP source into it.
- Save it, and use the Browser to upload it to a WIO.