{"id":1139,"date":"2018-01-16T11:23:49","date_gmt":"2018-01-16T13:23:49","guid":{"rendered":"https:\/\/arduxop.com.br\/loja\/produto\/ky-020-tilt-switch-module\/"},"modified":"2024-07-25T07:58:40","modified_gmt":"2024-07-25T11:58:40","slug":"ky-020-tilt-switch-module","status":"publish","type":"product","link":"https:\/\/arduxop.com.br\/loja\/produto\/ky-020-tilt-switch-module\/","title":{"rendered":"KY-020 Tilt switch module"},"content":{"rendered":"<p>Tilt switch module and a digital interface, built-in LED build a simple circuit to produce tilt warning lamp comes with digital interfaces of the LED, the tilt switch sensor interface to access digital 3, when the tilt open Off sensor senses a key signal, LED lights, otherwise off.&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Example code&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-int Led = 13 ;\/\/ define LED Interfaceint buttonpin = 3; \/\/ define the tilt switch sensor interfacesint val ;\/\/ define numeric variables valvoid setup (){ pinMode (Led, OUTPUT) ;\/\/ define LED as output interface pinMode (buttonpin, INPUT) ;\/\/define the output interface tilt switch sensor}void loop (){ val = digitalRead (buttonpin) ;\/\/ digital interface will be assigned a value of 3 to read val if (val == HIGH) \/\/When the tilt sensor detects a signal when the switch, LED flashes { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); }}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tilt switch module and a digital interface, built-in LED build a simple circuit to produce tilt warning lamp comes with digital interfaces of the LED, the tilt switch sensor interface to access digital 3, when the tilt open Off sensor senses a key signal, LED lights, otherwise off.&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Example code&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-int Led = 13 ;\/\/ define LED [&hellip;]<\/p>\n","protected":false},"featured_media":1140,"template":"","meta":[],"product_brand":[],"product_cat":[178],"product_tag":[],"class_list":{"0":"post-1139","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-sensores","8":"entry","9":"has-media","11":"first","12":"instock","13":"sale","14":"sold-individually","15":"purchasable","16":"product-type-simple","17":"has-product-nav","18":"col","19":"span_1_of_3","20":"owp-content-center","21":"owp-thumbs-layout-horizontal","22":"owp-btn-normal","23":"owp-tabs-layout-horizontal"},"_links":{"self":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product\/1139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/media\/1140"}],"wp:attachment":[{"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/media?parent=1139"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_brand?post=1139"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_cat?post=1139"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/arduxop.com.br\/loja\/wp-json\/wp\/v2\/product_tag?post=1139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}