UNPKG

node-red-contrib-ledmatrix

Version:

Contains the nodes used in TimeSquAir to use the LEDMatrix library

41 lines (36 loc) 1.2 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="ledblank"> <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="ledblank"> <p>Clear the led matrix</p> <p>Add to <b>msg.cmd</b> shell script for clear led matrix.</p> </script> <script type="text/javascript"> RED.nodes.registerType('ledblank',{ category: "ledmatrix", defaults: { name: { value: "" } }, inputs:1, outputs:1, color: "#2196f3", paletteLabel: "led blank", icon: "ledblank.png", label: function() { return this.name || this.text || "led blank"; }, labelStyle: function() { return this.name ? "node_label_italic":""; } }); </script>