mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
mraa-gpio-dout: add iot2050 board
Add IOT2050 board into list of possible boards. Signed-off-by: zengchao <chao.zeng@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
This commit is contained in:
parent
92cabd3b65
commit
91a3d2b8ab
@ -1,7 +1,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('mraa-gpio-dout',{
|
||||
category: 'Intel gpio',
|
||||
category: 'GPIO',
|
||||
color: '#a6bbcf',
|
||||
paletteLabel: 'digital',
|
||||
defaults: {
|
||||
@ -36,6 +36,7 @@
|
||||
if (data === 5) { t = "Raspberry Pi"; }
|
||||
if (data === 6) { t = "Beaglebone"; }
|
||||
if (data === 7) { t = "Banana"; }
|
||||
if (data === 25) { t = "IOT2050"; }
|
||||
$('#btype').text(t);
|
||||
if (data === 0) {
|
||||
$('#node-input-pin').append($("<option></option>").attr("value",14).text("LED - Galileo v1"));
|
||||
@ -100,6 +101,6 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="mraa-gpio-dout">
|
||||
<p>A digital output pin for an Intel Galileo or Edison board.</p>
|
||||
<p>A digital output pin for a board.</p>
|
||||
<p>The <code>msg.payload</code> should contain the value 0 or 1.</p>
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user