UNPKG

iot-sol

Version:

Intel(r) IoT Services Orchestration Layer - HTML5 IDE + Node.js middleware to create and host distributed IoT Apps in minutes

43 lines (41 loc) 1.69 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="generator" content="pandoc" /> <title></title> <style type="text/css">code{white-space: pre;}</style> <link rel="stylesheet" href="styles/style.css" type="text/css" /> </head> <body> <div id="TOC"> <ul> <li><a href="#touch-button">Touch Button</a><ul> <li><a href="#detecttouch">detectTouch</a><ul> <li><a href="#description">Description</a></li> <li><a href="#config">Config</a></li> <li><a href="#input">Input</a></li> <li><a href="#output">Output</a></li> <li><a href="#example">Example</a></li> </ul></li> </ul></li> </ul> </div> <h1 id="touch-button">Touch Button</h1> <h2 id="detecttouch">detectTouch</h2> <h3 id="description">Description</h3> <p>hen triggered, detect whether the button is touched. If so, output true, otherwise, false.</p> <h3 id="config">Config</h3> <p><code>pin</code>: int. The gpio pin which is attached by the button</p> <h3 id="input">Input</h3> <p><code>trigger</code>: any type. It is a trigger signal, and whenever it comes, the service will check whether touched.</p> <h3 id="output">Output</h3> <p><code>bool</code>: boolean. true means it is touched, otherwise, false.</p> <h3 id="example">Example</h3> <div class="figure"> <img src="./pic/touch_buzz.jpg" /> </div> <p>It will check whether button is touched in every 1s, if it is touched, the buzzer starts buzzing, otherwise, the buzzer stop buzzing.</p> </body> </html>