node-red-contrib-grove-base-hat-dtam
Version:
The node for Grove Base HAT for Raspberry Pi with extensions for the DTAM project.
41 lines (36 loc) • 1.59 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('grove-gesture-sensor',{
category: 'grove-base-hat',
color: '#a6bbcf',
defaults: {
name: {value:""}
},
inputs:0,
outputs:1,
icon: "arrow-in.png",
label: function() {
return this.name||"grove-gesture-sensor";
}
});
</script>
<script type="text/x-red" data-template-name="grove-gesture-sensor">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Port</label>
I2C
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="grove-gesture-sensor">
<p>The node controls Grove Gesture Sensor.</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">string</span>
</dt>
<dd>the payload of Grove Gesture Sensor status as the type of gesture. For Example the datas are Forward/Backward/Right/Left/Up/Down/Clockwise and more. Check <a href="http://wiki.seeedstudio.com/Grove-Gesture_v1.0/" target="_blank">Grove-Gesture_v1.0 Wiki page</a> when you would like to know the detail of Gesture Type (ex. Gesture Type "Right").</dd>
<h3>Details</h3>
<p>This node listens to Grove Gesture Sensor and response Grove Gesture Sensor status as the type of gesture.</p>
</script>