mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
add extra gpoio support to neopixel node
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="rpi-neopixels">
|
||||
<script type="text/html" data-template-name="rpi-neopixels">
|
||||
<div class="form-row">
|
||||
<label for="node-input-pixels"><i class="fa fa-sun-o"></i> LEDs</label>
|
||||
<input type="text" id="node-input-pixels" placeholder="number" style="width:60px;"> in the string
|
||||
<span style="margin-left:50px;">Pin Number </span>
|
||||
<select id="node-input-gpio" style="width:50px; margin-left:5px;">
|
||||
<option value="18">12</option>
|
||||
<option value="12">32</option>
|
||||
<option value="13">33</option>
|
||||
<option value="19">35</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-mode"><i class="fa fa-cogs"></i> Mode</label>
|
||||
@@ -48,7 +55,7 @@
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="rpi-neopixels">
|
||||
<script type="text/html" data-help-name="rpi-neopixels">
|
||||
<p>Raspberry Pi node to drive a string of neopixel or ws2812 LEDs.</p>
|
||||
<p>Defaults to a bar chart style mode using configured foreground and background colours.
|
||||
It can also display a needle (single pixel) type gauge.</p>
|
||||
@@ -76,6 +83,7 @@
|
||||
color:"#c6dbef",
|
||||
defaults: {
|
||||
name: { value:"" },
|
||||
gpio: { value:18 },
|
||||
pixels: { value:"", required:true, validate:RED.validators.number() },
|
||||
bgnd: { value:"" },
|
||||
fgnd: { value:"" },
|
||||
|
Reference in New Issue
Block a user