UNPKG

node-red-contrib-ledmatrix

Version:

Contains the nodes used in TimeSquAir to use the LEDMatrix library

42 lines (37 loc) 1.33 kB
<!-- Copyright © 2015 Digital Airways (www.DigitalAirways.com) This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net for more details. --> <script type="text/x-red" data-template-name="ledpicture"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="ledpicture"> <p>Display a picture into a led matrix</p> <p>Add to <b>msg.cmd</b> a shell script for display picture into a led matrix.</p> <p>Only accept <b>JPEG</b>, <b>PNG</b> and <b>PPM</b> image formats.</p> </script> <script type="text/javascript"> RED.nodes.registerType('ledpicture',{ category: "ledmatrix", defaults: { name: { value: "" } }, inputs:1, outputs:1, color: "#2196f3", paletteLabel: "led picture", icon: "ledpicture.png", label: function() { return this.name || this.picture || "led picture"; }, labelStyle: function() { return this.name ? "node_label_italic":""; } }); </script>