UNPKG

node-red-contrib-smartnode-dfrobot

Version:

this project dependences the node-red-contrib-smartnode package for basic function. based on the smartnode package, this package provide some sersor nodes for DFRobot sensors.

49 lines (35 loc) 1.51 kB
<!-- Copyright 2015 Maker Collider Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <script type="text/x-red" data-help-name="DF-Buzzer"> <h3 id="蜂鸣器节点">蜂鸣器节点</h3> <p>本节点表示grove套件的蜂鸣器模块。</p> <h4 id="参数配置">参数配置</h4> <ol> <li>Name:节点名称</li> <li>PWM Pin:PWM引脚</li> <li>Tone(1~7):音调,范围为1~7</li> </ol> <h4 id="输入量">输入量</h4> <ol> <li>msg.payload:输入1或者0,1表示打开,0表示关闭</li> </ol> <h4 id="输出量">输出量</h4> <ol> <li>msg.payload:输出1或者0,1表示蜂鸣器响,0表示蜂鸣器关闭</li> </ol> <h4 id="使用方法">使用方法</h4> <ol> <li>配置好节点的每个参数,选择蜂鸣器发出的音调。</li> <li>当输入<code>msg.payload</code>为1时,蜂鸣器响,蜂鸣器节点输出<code>msg.payload</code>为1,当输入<code>msg.payload</code>为0时,蜂鸣器关,蜂鸣器节点输出<code>msg.payload</code>为0。</li> </ol> </script>