User Tools

Site Tools


arduino:amp-en

Differences

This shows you the differences between two versions of the page.


arduino:amp-en [2023/08/17 07:38] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +[[:arduino:amp-fr|{{ icons:fr.png|French Version}}]][[:arduino:amp-de|{{ icons:de.png|Deutsche Version}}]][[:arduino:amp-en|{{ icons:uk.png|English Version}}]]
 +====== WIO User Bitmaps ======
 +[[:english|{{ :hardware.png}}]][[:english|{{ :rocrail-logo-35.png}}]]
 +[[:english|Content]] -> [[:hardware-en#arduino|Arduino]]
 +  * [[:arduino:wio-overview-en|WIO Overview]] | [[:arduino:wio-setup-en|WIO Setup]] | [[:arduino:wioctrl-en|WIO Control]] | **[[:arduino:amp-en|User Bitmaps]]** | [[:arduino:wio-en|WIO Firmware]] | [[:wio:wio-ledscript-en|LEDScript]] 
 + \\
 +
 +
 + \\
 +=====File System=====
 +The SPIFFS, SPI Flash File System, is required to be able to **[[#upload_by_web_browser|Upload]]** user defined images to the WIO sketch.\\
 +See: __**[[:arduino:wio-en#spiffs|WIO Firmware]]**__\\
 +
 +
 + \\
 +=====The AMP (ASCII-MAP) Format=====
 +To make it easy to define a small bitmap/icon, an ASCII-MAP text file format is used.\\
 +The file name format is defined as follows:
 +<code>
 +<number>.amp
 +</code>
 +The number is in range between 0 and 999.\\
 +The maximum size is 128x64 pixel.\\
 +**Tip:** //It is recommended to use a simple text editor with a monospace font like Courier.//\\
 +
 +====Example====
 +Lines starting with a '#' are regarded as comment.\\
 +All other lines contains X'es and white space. Any character can be used as white space, excluding the 'x' and 'X'.\\
 +In the following example blanks are used as white space.\\
 +The bitmap/icon width and height are calculated automatically.\\
 +An 'X' represents a display pixel which should be turned on.\\ 
 +<code>
 +# 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
 +</code>
 +The {b#} display command is used to make it visible.\\
 +See: [[:arduino:wio-en#display_ssd1306|Display commands]]\\
 +{{:arduino:rocrail-logo-amp.jpg}}\\
 +The text content in Rocrail for this example:
 +<code>
 +{E}
 +{L0X0b55X18} Deutsche Bahn
 +{L2X0b56X18} Nederlandse Spoorwegen
 +{L4X0b999}
 +{P}
 +</code>
 +(55.amp is the DB, 56.amp the NS, and 999.amp the Rocrail logo.)\\
 +
 +
 +
 +
 + \\
 +=====Upload by WEB Browser=====
 +|  //This method is only available for four minutes after WIO boot.//  |
 +====Get the hostname or IP of the WIO====
 +Check the router of the home LAN which IP or hostname the WIO has:\\
 +{{:arduino:fritz-wio-ip-de.png?400}}\\
 +====Open the WEB Browser====
 +Click on the __**[[:arduino:wio-setup-en#tripple_dot|Tripple Dot button]]**__ on the WIO Setup dialog, or type the IP or hostname of the WIO in the WEB Browser like this:\\
 +<code>http://192.168.100.140</code>
 +The following page will show up:\\
 +{{:arduino:wio-web-setup-en.png?400}}\\
 +Click on the **"List files..."** button to change to the file listing page:\\
 +{{:arduino:wio-web-filehandling.png?400}}\\
 +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-en|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 __**[[#upload_by_web_browser|Browser]]**__ to upload it to a WIO.
 +
 +**Note:** //The prefix field is used as AMP comment.//\\
 +{{:arduino:create-amp-rocview.png?600}}\\
 +