|
|
- <!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 name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="search" href="https://arduino-info.wikispaces.com/space/opensearch" type="application/opensearchdescription+xml" title="Wikispaces Search (arduino-info Wiki)" />
- <link rel="alternate" type="application/x-wiki" title="Edit This Page" href="/page/edit/IR-RemoteControl" />
- <link rel="alternate" title="arduino-info - All Changes" href="https://arduino-info.wikispaces.com/wiki/xmla?v=rss_2_0" type="application/rss+xml" />
- <link rel="alternate" title="arduino-info : IR-RemoteControl - Discussion" href="https://arduino-info.wikispaces.com/message/xml/IR-RemoteControl?v=rss_2_0" type="application/rss+xml" />
- <link rel="alternate" title="arduino-info : IR-RemoteControl - Edits" href="https://arduino-info.wikispaces.com/page/xml/IR-RemoteControl?v=rss_2_0" type="application/rss+xml" />
- <link rel="microsummary" href="/page/microsummary/IR-RemoteControl/edits"/>
- <link rel="microsummary" href="/page/microsummary/IR-RemoteControl/messages"/>
- <script type="text/javascript">
-
- if (typeof ws === 'undefined') ws = {};
- ws.context = {
- instance: {
- id: '1',
- url: 'wikispaces.com',
- isMain: true,
- supportsGoogleDocs: false,
- isTesClassroom: false,
- },
- user: {
- id: '',
- username: '',
- status: '',
- locale: 'en_US',
- imageUrlPrefix: 'https://ssl.wikicdn.com/i/user_none_',
- isTeacher: false,
- canAdministerWiki: false,
- },
- wiki: {
- id: '6378028',
- name: 'arduino-info',
- text: 'arduino-info',
- module: 'B',
- isClassroom: false,
- isTesClassroom: false
- ,defaultSpaceId: 6378028
- ,isWwwWiki: false
- },
- project: {
- id: '6378028',
- name: ''
- },
- space: {
- id: '6378028',
- name: 'arduino-info',
- isDefaultSpace: true,
- isDefaultTemplate: false
- },
-
- environment_name: 'prod',
-
- path: {
- object: 'page',
- method: 'view',
- page: 'IR-RemoteControl',
- id: ''
- },
-
- settings: {
- main_domain: 'wikispaces.com',
- session_url: 'https://session.wikispaces.com/1/',
- asset_url_prefix: 'https://ssl.wikicdn.com',
- beta_features: false,
- isMobileSite: false,
- isUploadCapable: true,
- can_discuss: false,
- has_gdocs: false,
- isDialog: false,
- pwin: ''
- },
- clockSkewMillis: 1537512281686 - ((window.performance && window.performance.timing.responseStart > 0) ? window.performance.timing.responseStart : (new Date()).getTime())
- }
-
-
- // legacy javascript API variables, use the above instead
- var wikispaces_isUserLoggedIn = !!ws.context.user.id;
- var wikispaces_isMain = ws.context.instance.isMain;
- var wikispaces_username = ws.context.user.username;
- var wikispaces_spaceName = ws.context.space.name;
- var wikispaces_projectName = ws.context.project.name;
- var wikispaces_wikiName = ws.context.wiki.name;
- var wikispaces_wikiText = ws.context.wiki.text;
- var wikispaces_isDefaultSpace = ws.context.space.isDefaultSpace;
- var wikispaces_method = ws.context.path.method;
- var wikispaces_object = ws.context.path.object;
- var wikispaces_page = ws.context.path.page;
- var wikispaces_id = ws.context.path.id;
- var wikispaces_domain = ws.context.instance.url;
- var wikispaces_isUserOrganizer = false;
- var wikispaces_main_domain = ws.context.settings.asset_url_prefix;
- var wikispaces_asset_url_prefix = ws.context.settings.asset_url_prefix;
- var wikispaces_beta_features = ws.context.settings.beta_features;
- var wikispaces_isMobileSite = ws.context.settings.isMobileSite;
- var wikispaces_isUploadCapable = ws.context.settings.isUploadCapable;
- var wikispaces_can_discuss = ws.context.settings.can_discuss;
- var wikispaces_has_gdocs = ws.context.settings.has_gdocs;
-
- </script><title>arduino-info - IR-RemoteControl</title>
- <meta charset="utf-8" />
- <link rel="apple-touch-icon" sizes="144x144" href="https://ssl.wikicdn.com/_/z6371z4x/i/logo-144.png" />
- <link rel="apple-touch-icon" sizes="114x114" href="https://ssl.wikicdn.com/_/j5j77xz3/i/logo-114.png" />
- <link rel="apple-touch-icon" sizes="72x72" href="https://ssl.wikicdn.com/_/vq8j5432/i/logo-72.png" />
- <link rel="apple-touch-icon" href="https://ssl.wikicdn.com/_/38515190/i/logo-57.png" />
- <link rel="shortcut icon" href="https://ssl.wikicdn.com/_/55v9k02z/i/logo-16.png" />
- <style type="text/css">
- /* Standard theme styles */
- *, *:before, *:after {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- body {
- font-family: arial, helvetica, sans-serif;
- font-size: 14px;
- line-height: 20px;
- margin: 0;
- }
- .ws-theme-header-inner,
- .ws-theme-body-inner,
- .ws-theme-footer-inner,
- .ws-theme-content-inner,
- .ws-theme-sidebar-inner {
- position: relative;
- }
- .ws-theme-header-inner:after,
- .ws-theme-body-inner:after,
- .ws-theme-footer-inner:after,
- .ws-theme-content-inner:after,
- .ws-theme-sidebar-inner:after,
- .ws-theme-menu-inner:after {
- content: " ";
- visibility: hidden;
- display: block;
- height: 0;
- clear: both;
- }
- .ws-theme-content, .ws-theme-sidebar {
- overflow-x: auto;
- }
- .ws-theme-footer {
- text-align: right;
- }
- .ws-theme-footer a, .ws-theme-footer a:hover {
- text-decoration: none;
- }
- @media (min-width: 768px) {
- .ws-theme-container {
- width: 750px;
- margin-right: auto;
- margin-left: auto;
- }
- .ws-theme-content {
- width: 550px;
- min-height: 384px;
- float: right;
- }
- .ws-theme-sidebar {
- width: 200px;
- float: left;
- }
- }
- @media (min-width: 992px) {
- .ws-theme-container {
- width: 970px;
- }
- .ws-theme-content {
- width: 770px;
- min-height: 496px;
- }
- }
- @media (min-width: 1200px) {
- .ws-theme-container {
- width: 1170px;
- }
- .ws-theme-content {
- width: 970px;
- min-height: 600px;
- }
- }
- /* End standard theme styles */
- </style>
- <style type="text/css">
- /* Theme-specific styles */
- body {
- background: #DDA;
- }
-
- .ws-theme-container {
- margin: 0 5px;
- }
-
- .ws-theme-header .WikiSearch .WikiSearchInput,
- .ws-theme-sidebar .WikiSearch .WikiSearchInput,
- .ws-theme-footer .WikiSearch .WikiSearchInput {
- width: 100%;
- }
-
- .ws-theme-header a,
- .ws-theme-header a:hover,
- .ws-theme-sidebar a,
- .ws-theme-footer a {
- text-decoration: none;
- }
- .ws-theme-header a,
- .ws-theme-header a:hover,
- .ws-theme-footer a {
- color: inherit;
- text-decoration: none;
- }
- .ws-theme-header .ws-theme-menu a:hover,
- .ws-theme-sidebar a:hover,
- .ws-theme-footer a:hover {
- text-decoration: underline;
- }
- .ws-theme-header img,
- .ws-theme-sidebar img,
- .ws-theme-footer img {
- border: none;
- }
-
- .ws-theme-header,
- .ws-theme-footer {
- color: #444444;
- }
-
- .ws-theme-header,
- .ws-theme-sidebar {
- display: none;
- }
-
- .ws-theme-content,
- .ws-theme-sidebar {
- overflow-x: visible;
- }
- .ws-theme-content-inner,
- .ws-theme-sidebar-inner {
- padding: 15px;
- border-radius: 5px;
- }
-
- .ws-theme-body {
- padding-top: 15px;
- }
-
- .ws-theme-content-inner {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- background-color: #FFF;
- }
-
- .ws-theme-footer {
- text-align: center;
- }
- .ws-theme-footer-inner {
- padding: 15px;
- }
- .ws-theme-footer .WikiLicense img {
- vertical-align: text-bottom;
- }
-
- @media (min-width: 768px) {
- body {
- background: url(https://ssl.wikicdn.com/_/2537888v/i/theme_wood.jpg);
- }
-
- .ws-theme-container {
- width: auto;
- }
-
- .ws-theme-header,
- .ws-theme-sidebar {
- display: block;
- }
-
- .ws-theme-header .ws-theme-menu {
- background: #80A7D9 url(https://ssl.wikicdn.com/_/4qkjx897/i/theme_header_overlay.png) repeat-x;
- border-bottom: 1px solid #BBB;
- margin-bottom: 10px;
- color: #FFFFFF;
- }
- .ws-theme-header .ws-theme-menu-inner {
- padding: 10px 0;
- }
- .ws-theme-header .WikiActions {
- margin: 0 0 0 12px;
- padding: 0;
- }
- .ws-theme-header .WikiActions li {
- display: inline-block;
- list-style-type: none;
- padding-right: 15px;
- white-space: nowrap;
- }
- .ws-theme-header .WikiActions div {
- display: inline-block;
- }
- .ws-theme-header .WikiActionSupplemental {
- margin-left: 4px;
- }
- .ws-theme-header-inner {
- font-family: Georgia, 'Times New Roman', Times, serif !important;
- font-size: 1.5em !important;
- font-weight: normal !important;
- }
- .ws-theme-header-inner a {
- font-size: inherit !important;
- }
-
- .ws-theme-content {
- width: auto;
- margin-right: 200px;
- padding-right: 5px;
- padding-left: 73px;
- float: none;
- }
- .ws-theme-content-inner {
- float: left;
- width: 100%;
- }
- .ws-theme-content-inner:before {
- content: " ";
- display: block;
- position: absolute;
- top: 0;
- bottom: 0;
- left: -73px;
- width: 73px;
- background: url(https://ssl.wikicdn.com/_/q85x653j/i/theme_spiral.png) repeat-y 0 -6px;
- }
-
- .ws-theme-sidebar {
- float: right;
- }
- .ws-theme-sidebar a {
- color: #0000FF;
- }
- .ws-theme-sidebar-inner {
- padding: 10px;
- background-color: #EDEDE6;
- border: 1px solid #BFBA96;
- }
- .ws-theme-sidebar .WikiCustomNav ol {
- padding-left: 16px;
- }
- .ws-theme-sidebar .WikiCustomNav ol.includePageList {
- padding-left: 0;
- }
- .ws-theme-sidebar .WikispacesNavbar {
- margin: 0 -10px;
- padding: 0 10px;
- }
- .ws-theme-sidebar .ws-theme-nav-edit {
- color: #666;
- text-align: center;
- }
- .ws-theme-sidebar .ws-theme-nav-edit a {
- color: inherit;
- }
- }
- /* End theme-specific styles */
- </style>
- <link rel="stylesheet" href="https://arduino-info.wikispaces.com/stylesheet/view/583997825-217420326D.gz.css" type="text/css" />
- <link rel="stylesheet" href="https://ssl.wikicdn.com/s/gz/9jvvjv40-internal-bootstrap.css" type="text/css" />
- <link rel="stylesheet" href="https://ssl.wikicdn.com/s/gz/vz033906-internal.css" type="text/css" />
- <script src="https://ssl.wikicdn.com/s/gz/q8v77464-top.min.js" type="text/javascript"></script>
-
- <script type="text/javascript">
- var _gaq = _gaq || [];
-
- var wsGoogleAccount = 'UA-80504-1';
- _gaq.push(['_setAccount', wsGoogleAccount]);
- _gaq.push(['_gat._anonymizeIp']);
- _gaq.push(['_setDomainName', 'wikispaces.com']);
- _gaq.push(['_setAllowLinker', true]);
- _gaq.push(['_setCustomVar', 2, 'Authenticated', 'Guest', 2]);
- _gaq.push(['_trackPageview']);
- </script></head>
- <body><a href="#WikiContent" class="hidden sr-only sr-only-focusable">Skip to main content</a><div id="js-fixed-header-holder" class="fixed"><div class="WikispacesContent WikispacesBs3" role="banner">
-
- <div class="ws-main-top-nav visible-xs">
- <div class="navbar navbar-static-top" style="margin-bottom: 0;">
- <div class="container">
- <div class="navbar-header">
- <div class="visible-xs pull-left">
- <a href="/space/menu" class="WikispacesDialogLink btn navbar-btn">
- <i class="fa fa-bars"></i>
- </a>
- </div>
- <div class="visible-xs pull-right js-globalnav-popover-container">
- <a href="https://www.wikispaces.com/site/signin?goto=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl%3FresponseToken%3D0236859e09b5634170a211f2a7931a934" class="btn navbar-btn ws-mobile-guest-username js-globalnav-popover-trigger">
- guest
- </a>
- <div class="hidden js-globalnav-popover-content">
- <div class="WikispacesContent WikispacesBs3">
- <div class="WikiInternalHeaderNav noHide">
- <div class="WikiInternalHeaderNavMenu">
-
- <span class="WikiInternalHeaderNavMenuArea"><a href="https://www.wikispaces.com/user/join?goto=https%3A%2F%2Farduino-info.wikispaces.com%2Fspace%2Fjoin" rel="nofollow" class="WikispacesXDomainDialogLink">Join</a></span>
-
- <span class="divider">|</span>
-
- <span class="WikiInternalHeaderNavMenuArea"><a class="js-help-trigger" rel="nofollow" href="http://helpcenter.wikispaces.com/">Help</a></span>
-
- <span class="divider">|</span>
-
- <span class="WikiInternalHeaderNavMenuArea"><a href="https://www.wikispaces.com/site/signin?goto=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl%3FresponseToken%3D0236859e09b5634170a211f2a7931a934" rel="nofollow" class="WikispacesXDomainDialogLink">Sign In</a></span>
- </div>
- </div> </div>
- </div>
- </div>
- <div class="ws-navbar-middle-xs">
- <div class="navbar-brand" role="navigation">
- <a href="https://www.wikispaces.com/" class="ws-logo"></a>
- <i class="fa fa-angle-right"></i>
- <a href="https://arduino-info.wikispaces.com/">arduino-info</a>
- <i class="fa fa-angle-right"></i> <a href="https://arduino-info.wikispaces.com/home">Home</a>
-
- </div>
- </div>
- <form action="/search/view" method="post" class="navbar-form ws-include-xs pull-left ws-navbar-search hidden-xs" role="search"><input type="hidden" name="wikispacesFormToken" value="e8783170a68c6664ae0caab7712efb7a19f575f9"/><input type="text" class="form-control search-query" name="q" value="" placeholder="Search" /> </form>
- </div>
- </div>
- </div>
- </div>
- <div class="hidden-xs"><div class="WikiInternalHeaderNav WikiElement floating">
- <div class="WikiInternalHeaderNavMenu">
- <span class="WikiInternalHeaderNavMenuArea guestUserName">guest</span><span class="slideMarker divider">|</span>
-
- <span class="WikiInternalHeaderNavMenuArea"><a href="https://www.wikispaces.com/user/join?goto=https%3A%2F%2Farduino-info.wikispaces.com%2Fspace%2Fjoin" rel="nofollow" class="WikispacesXDomainDialogLink">Join</a></span>
-
- <span class="divider">|</span>
-
- <span class="WikiInternalHeaderNavMenuArea"><a class="js-help-trigger" rel="nofollow" href="http://helpcenter.wikispaces.com/">Help</a></span>
-
- <span class="divider">|</span>
-
- <span class="WikiInternalHeaderNavMenuArea"><a href="https://www.wikispaces.com/site/signin?goto=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl%3FresponseToken%3D0236859e09b5634170a211f2a7931a934" rel="nofollow" class="WikispacesXDomainDialogLink">Sign In</a></span>
- </div>
- </div></div>
- </div></div><div id="js-fixed-header-offset">
- <header class="ws-theme-header" role="banner">
- <nav class="ws-theme-menu" role="navigation">
- <div class="ws-theme-container">
- <div class="ws-theme-menu-inner">
- <ul class="WikiActions WikiElement WikiControls">
- <li id="WikiActionHome"><div><span class="WikiActionSupplemental" style="float: right;"></span><a href="https://arduino-info.wikispaces.com/"><i class="fa fa-home fa-fw"></i></a><a href="https://arduino-info.wikispaces.com/">Wiki Home</a></div></li>
- <li id="WikiActionChanges"><div><span class="WikiActionSupplemental" style="float: right;"></span><a href="/wiki/changes"><i class="fa fa-clock-o fa-fw"></i></a><a href="/wiki/changes">Recent Changes</a></div></li>
- <li id="WikiActionPagesAndFiles"><div><span class="WikiActionSupplemental" style="float: right;"></span><a href="/space/content"><i class="fa fa-file-text-o fa-fw"></i></a><a href="/space/content">Pages and Files</a></div></li>
- <li id="WikiActionMembers"><div class="js-member-link"><span class="WikiActionSupplemental" style="float: right;"></span><a href="/wiki/members"><i class="fa fa-user fa-fw"></i></a><a href="/wiki/members">Members</a></div></li>
- </ul>
- </div>
- </div>
- </nav>
- <div class="ws-theme-container">
- <div class="ws-theme-header-inner">
- <a href="https://arduino-info.wikispaces.com/" class="WikiLogo WikiElement"><img src="https://arduino-info.wikispaces.com/space/showlogo/1537190070/logo.jpg" alt="arduino-info" /></a> </div>
- </div>
- </header>
-
- <div class="ws-theme-body">
- <div class="ws-theme-container">
- <div class="ws-theme-body-inner">
- <nav class="ws-theme-sidebar" role="navigation">
- <div class="ws-theme-sidebar-inner">
- <div class="ws-theme-menu">
- <div class="ws-theme-menu-inner">
- <form action="/search/view" method="post" class="WikiSearch WikiElement" role="search"><input type="text" class="form-control WikiSearchInput" name="q" value="" placeholder="Search" /> </form> <div class="WikiCustomNav WikiElement wiki"><h2><a class="wiki_link" href="/HOME">HOME</a></h2>
- <h2><a class="wiki_link" href="http://arduino-info.wikispaces.com/About-Contact">ABOUT US!</a></h2>
- <h3><span style="color: #ff0037;"><a class="wiki_link_ext" href="http://yourduino.com/sunshop2/" rel="nofollow">YourDuinoShop</a></span></h3>
- <h3><span style="color: #ff0000;"><a class="wiki_link" href="http://arduino-info.wikispaces.com/Newsletters">NEWSLETTERS</a></span></h3>
- <h2><a class="wiki_link_ext" href="http://arduinoinfo.info/blog/" rel="nofollow">BLOG</a></h2>
- <h2><a class="wiki_link" href="/WikiFolk">THIS WIKI:</a></h2>
- <hr />
- <hr />
- <span style="font-size: 26px; line-height: 30px;"><strong><a class="wiki_link" href="http://arduino-info.wikispaces.com/Arduino-What-IS-it">WHAT IS Arduino?</a></strong></span><br />
- <hr />
- <span style="font-size: 26px; line-height: 30px;"><strong>LEARNING Arduino:</strong></span><br />
- <ul><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/Arduino-What-IS-it">Arduino: WhatIsIt?</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/YourDuinoStarter">Hands-On Learning</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/YourDuinoStarterSoftwareSketches">Example Sketches</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/Arduino-Libraries">Arduino Libraries</a></li></ul><hr />
- <strong><span style="font-size: 26px;">ARDUINO HOWTO:</span></strong><br />
- <ul><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/Cables">CABLES, WIRES and PINS</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/SensorShield">SENSOR SHIELD</a></li><li><a class="wiki_link" href="/ArduinoPower">ARDUINO POWER</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/Servos">SERVO MOTORS</a></li><li><a class="wiki_link" href="/Nrf24L01-2.4GHz-HowTo">WIRELESS nRF24L01</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/LCD-Blue-I2C">LCD DISPLAYS</a></li><li><a class="wiki_link" href="/SD-Cards">SD CARDS</a></li><li><a class="wiki_link" href="/UltraSonicDistance">Ultrasonic Sensors</a></li><li><a class="wiki_link" href="http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20">TemperatureSensor</a></li><li><a class="wiki_link" href="/IR-RemoteControl">IR Remotes</a></li><li><a class="wiki_link" href="/StepperMotors">Stepper Motors</a></li><li><a class="wiki_link" href="/DS1307_RealTime_Clock_Brick">RealTimeClock</a></li><li><a class="wiki_link" href="/Keyboards-MultipleButtons">Keyboards/Buttons</a></li><li><a class="wiki_link" href="/Arduino-PWM-Frequency">PWM Frequencies</a></li><li><a class="wiki_link" href="/Analog-Output">Analog Output</a></li><li><a class="wiki_link" href="/TUTORIALS">TUTORIALS</a></li></ul><br />
- <a class="wiki_link" href="/Collaborate">BJK</a><br />
- <a class="wiki_link" href="http://arduino-info.wikispaces.com/Listing_File_List">C</a></div> <div class="ws-theme-nav-edit">
- </div>
- </div>
- </div>
- </div>
- </nav>
- <main class="ws-theme-content" role="main">
- <div class="ws-theme-content-inner">
- <div class="contentBox"><div class="innerContentBox" id="WikiContent">
-
- <script type="text/template" id="comment-footer-template">
-
- <div class="commentFooter modal-footer">
- <div class="pull-left">
- <button type="button" class="btn btn-default btn-sm previous"><i class="fa fa-arrow-left"></i></button>
- <button type="button" class="btn btn-default btn-sm next"><i class="fa fa-arrow-right"></i></button>
- </div>
- <% if (ws.context.user.canAdministerWiki && !ws.comments.Manager.readOnly) { %>
- <div class="pull-right">
- <button type="button" class="btn btn-default btn-sm remove">Remove</button>
- </div>
- <% } %>
- </div>
-
- </script>
-
- <script type="text/template" id="comment-content-template">
- <div class="ws-box commentView">
- <div class="comment-close">
- <button type="button" class="closeme close" aria-hidden="true"><i class="fa fa-times"></i></button>
- </div>
- <div class="commentHeader">
- <p class="ws-stream-meta command-context">
- <a class="userLink userLinkPicture" href="<%= userCreated.url %>"><img class="userPicture" src="<%= userCreated.imageUrl %>" width="16" height="16"></a>
- <a href="<%= userCreated.url %>"><%= userCreated.username %></a>
- <% if (smartDate == '__live__') { %>
- <abbr class="timeago" title="<%= (new Date(parseInt(dateCreated, 10) * 1000)).toISOString() %>">
- <%= dateCreated %>
- </abbr>
- <% } else { %>
- <%- smartDate %>
- <% } %>
- <% if (ws.context.user.canAdministerWiki && ws.comments.Manager.readOnly) { %>
- <i class="fa fa-trash-o contextual-command delete ws-tip" title="Delete Comment"></i>
- <% } %>
- </p>
- </div>
-
- <div class="commentBody">
- <div class="commentContent">
- <%= description %>
- </div>
-
- <% for(i = 0; i < replyPages.length; i++) { %>
- <% for(var j = 0; j < replyPages[i].digests.length; j++) { %>
- <div class="commentReply" data-id="<%= replyPages[i].digests[j].id %>">
- <p class="ws-stream-meta command-context">
- <a class="userLink userLinkPicture" href="<%= replyPages[i].digests[j].userCreated.url %>"><img class="userPicture" src="<%= replyPages[i].digests[j].userCreated.imageUrl %>" width="16" height="16"></a>
- <a href="<%= replyPages[i].digests[j].userCreated.url %>"><%= replyPages[i].digests[j].userCreated.username %></a>
- <% if (smartDate == '__live__') { %>
- <abbr class="timeago" title="<%= (new Date(parseInt(replyPages[i].digests[j].dateCreated, 10) * 1000)).toISOString() %>">
- <%= new Date(parseInt(replyPages[i].digests[j].dateCreated, 10) * 1000).toLocaleString() %>
- </abbr>
- <% } else { %>
- <%- smartDate %>
- <% } %>
- <% if (ws.context.user.canAdministerWiki) { %>
- <i class="fa fa-trash-o contextual-command delete-reply ws-tip" title="Delete Reply"></i>
- <% } %>
- </p>
- <div class="commentContent"><%= replyPages[i].digests[j].body %></div>
- </div>
- <% } %>
- <% } %>
-
- <form class="reply commentReply">
- <div class="form-group">
- <textarea name="reply" placeholder="Reply" class="form-control" /></textarea>
- </div>
- <div class="btn-toolbar">
- <button type="submit" class="btn btn-primary btn-sm" name="go" value="1">Post</button>
-
- <% if (ws.context.user.id) { %>
- <% if (monitored) { %>
- <button type="button" class="btn btn-default btn-sm pull-right toggle-monitor ws-tip active" title="You are monitoring replies."><i class="fa fa-eye"></i></button>
- <% } else { %>
- <button type="button" class="btn btn-default btn-sm pull-right toggle-monitor ws-tip" title="You are not monitoring replies."><i class="fa fa-eye"></i></button>
- <% } %>
- <% } %>
- <% if (ws.context.user.canAdministerWiki) { %>
- <% if (locked) { %>
- <button type="button" class="btn btn-default btn-sm pull-right toggle-lock ws-tip active" title="Replies are not allowed."><i class="fa fa-lock"></i></button>
- <% } else { %>
- <button type="button" class="btn btn-default btn-sm pull-right toggle-lock ws-tip" title="Replies are allowed."><i class="fa fa-lock"></i></button>
- <% } %>
- <% } %>
-
- <i class="fa fa-spinner fa-spin spinner pull-right hidden"></i>
- </div>
- </form>
- </div>
-
-
- <div class="commentFooter modal-footer">
- <div class="pull-left">
- <button type="button" class="btn btn-default btn-sm previous"><i class="fa fa-arrow-left"></i></button>
- <button type="button" class="btn btn-default btn-sm next"><i class="fa fa-arrow-right"></i></button>
- </div>
- <% if (ws.context.user.canAdministerWiki && !ws.comments.Manager.readOnly) { %>
- <div class="pull-right">
- <button type="button" class="btn btn-default btn-sm remove">Remove</button>
- </div>
- <% } %>
- </div>
-
- </div>
- </script>
-
- <script type="text/template" id="comment-composer-template">
- <div class="ws-box commentView">
- <div class="commentComposer">
- <div class="comment-close">
- <button type="button" class="close closeme" aria-hidden="true"><i class="fa fa-times"></i></button>
- </div>
- <div class="commentHeader">
- <p class="ws-stream-meta command-context">
- <img class="userPicture" src="<%= userCreated.imageUrl %>" width="16" height="16">
- <a href="#" onclick="return false;"><%= userCreated.username %></a>
- </p>
- </div>
- <div class="commentBody">
- <textarea name="comment" class="compose form-control" placeholder="Comment"/></textarea><br/>
- <div class="btn-toolbar">
- <button type="button" class="btn btn-default btn-sm monitored active pull-right" style="margin-left: 6px" onclick="jQuery(this).toggleClass('active')"><i class="fa fa-eye"></i></button>
- <button type="button" class="btn btn-default btn-sm locked btn-toggle pull-right" onclick="jQuery(this).toggleClass('active')"><i class="fa fa-lock"></i></button>
- <button type="button" class="btn btn-primary btn-sm closeme">Save</button>
- </div>
- </div>
- </div>
-
-
- <div class="commentFooter modal-footer">
- <div class="pull-left">
- <button type="button" class="btn btn-default btn-sm previous"><i class="fa fa-arrow-left"></i></button>
- <button type="button" class="btn btn-default btn-sm next"><i class="fa fa-arrow-right"></i></button>
- </div>
- <% if (ws.context.user.canAdministerWiki && !ws.comments.Manager.readOnly) { %>
- <div class="pull-right">
- <button type="button" class="btn btn-default btn-sm remove">Remove</button>
- </div>
- <% } %>
- </div>
-
- </div>
- </script>
-
- <script type="text/template" id="comment-proxy-template">
- <div class="comment-proxy">
- <span class="commentUser">
- <% if (userCreated) { %>
- <img class="userPicture" src="<%= userCreated.imageUrl %>" width="16" height="16">
- <% } else { %>
- <img class="userPicture" src="<%= ws.context.user.imageUrlPrefix %>sm.jpg" width="16" height="16">
- <% } %>
- </span>
- <span class="commentReplies"><%= 1 + _(replyPages).reduce(function(memo, page){ return memo + page.digests.length; }, 0) %></span>
- </div>
- </script>
-
- <div class="ws-menu-bar WikiControls WikispacesContent WikispacesBs3">
-
- <h1 class="pageTitle"><a href="/IR-RemoteControl">IR-RemoteControl</a></h1>
- <div class="btn-group pull-right">
- <span class="btn btn-default disabled tipme" title="you do not have permission to edit this page"><i class="fa fa-pencil fa-fw"></i> Edit</span> <a class="btn btn-default tipme" title="view 4 discussion posts" href="/IR-RemoteControl#discussion"><i class="fa fa-comments fa-fw"></i> 4</a> <a class="btn btn-default tipme" title="view 62 revisions" href="/page/history/IR-RemoteControl"><i class="fa fa-clock-o fa-fw"></i> 62</a> <a class="btn btn-default ws-btn-more dropdown-toggle tipme" title="more options" href="/page/menu/IR-RemoteControl"><i class="icon-height-only fa-fw"></i>…</a> <ul class="ws-more-menu dropdown-menu dropdown-menu-right">
- <li class=" dropdown"><a class=" ws-tag-dropdown-toggle" href="/page/tags/IR-RemoteControl"><span class="pull-right">0</span> <i class="fa fa-tag fa-fw"></i> Tags</a>
- <div class="dropdown-menu dropdown-menu-right ws-tag-dropdown-menu">
-
-
-
-
- <form action="#" name="WikiTagForm" class="WikiTagForm"><input type="hidden" name="wikispacesFormToken" value="f4fe84ca3962f2e8afc9687c592744b091d9a875"/><input type="hidden" name="wikispacesFormToken" value="f4fe84ca3962f2e8afc9687c592744b091d9a875"/>
- <div class="WikiTagList">
- <i class="fa fa-tag ws-action"></i>
- <ul class="list-unstyled">
- <li>No tags</li>
- </ul>
- </div>
- </form> </div>
- </li>
- <li class="divider"></li>
- <li class=""><a class=" WikispacesDialogLink" href="https://arduino-info.wikispaces.com/wiki/addmonitor?monitorLink=page%3AIR-RemoteControl"><i class="fa fa-eye fa-fw"></i> Notify</a>
- </li>
- <li class=""><a class=" WikispacesDialogLink" href="/page/rss/IR-RemoteControl"><i class="fa fa-rss fa-fw"></i> RSS</a>
- </li>
- <li class=""><a class="" href="/page/links/IR-RemoteControl"><i class="fa fa-link fa-fw"></i> Backlinks</a>
- </li>
- <li class="divider"></li>
- <li class=""><a class="" href="/page/code/IR-RemoteControl"><i class="fa fa-code fa-fw"></i> Source</a>
- </li>
- <li class=""><a class="" href="/IR-RemoteControl?f=print"><i class="fa fa-print fa-fw"></i> Print</a>
- </li>
- <li class=""><a class="" href="/page/pdf/IR-RemoteControl"><i class="fa fa-cloud-download fa-fw"></i> Export (PDF)</a>
- </li>
- </ul> </div>
- </div>
-
-
-
-
- <textarea class="form-control" id="autosaveContent" style="display:none;" rows="1" cols="1"></textarea>
- <div id="autosavePrompt" style="display:none;"></div>
-
- <div class="commentContainer">
- <div class="commentSubject">
- <div class="wiki wikiPage" id="content_view">
- <!-- ws:start:WikiTextHeadingRule:3:<h1> --><h1 id="toc0"><a name="Infrared (IR) Remote"></a><!-- ws:end:WikiTextHeadingRule:3 -->Infrared (IR) Remote</h1>
- <!-- ws:start:WikiTextLocalImageRule:157:<img src="https://arduino-info.wikispaces.com/file/view/IR-pinout.jpg/264668350/IR-pinout.jpg" alt="" title="" align="right" /> --><img src="https://arduino-info.wikispaces.com/file/view/IR-pinout.jpg/264668350/IR-pinout.jpg" alt="IR-pinout.jpg" title="IR-pinout.jpg" align="right" /><!-- ws:end:WikiTextLocalImageRule:157 --><br />
- Here's the pinout for almost every 3-pin IR Receiver:<br />
- <br />
- <!-- ws:start:WikiTextLocalImageRule:158:<img src="/file/view/ir-receiver.jpg/266953396/ir-receiver.jpg" alt="" title="" align="left" /> --><img src="/file/view/ir-receiver.jpg/266953396/ir-receiver.jpg" alt="ir-receiver.jpg" title="ir-receiver.jpg" align="left" /><!-- ws:end:WikiTextLocalImageRule:158 -->(Here) is a link to a typical IR Receiver Spec Sheet:<!-- ws:start:WikiTextFileRule:165:<img src="https://www.wikispaces.com/site/embedthumbnail/file/IR-Receiver-AX-1838HS.pdf?h=52&w=320" class="WikiFile" id="wikitext@@file@@IR-Receiver-AX-1838HS.pdf" title="File: IR-Receiver-AX-1838HS.pdf" width="320" height="52" /> --><div class="objectEmbed"><a href="/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf" onclick="ws.common.trackFileLink('/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf');"><img src="https://ssl.wikicdn.com/i/mime/32/application/pdf.png" height="32" width="32" alt="IR-Receiver-AX-1838HS.pdf" /></a><div><a href="/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf" onclick="ws.common.trackFileLink('/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf');" class="filename" title="IR-Receiver-AX-1838HS.pdf">IR-Receiver-AX-1838HS.pdf</a><br /><ul><li><a href="/file/detail/IR-Receiver-AX-1838HS.pdf">Details</a></li><li><a href="/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf">Download</a></li><li style="color: #666">380 KB</li></ul></div></div><!-- ws:end:WikiTextFileRule:165 --><br />
- And here's another said to be more sensitive:<br />
- <!-- ws:start:WikiTextFileRule:166:<img src="https://www.wikispaces.com/site/embedthumbnail/file/IR-tsop48.pdf?h=52&w=320" class="WikiFile" id="wikitext@@file@@IR-tsop48.pdf" title="File: IR-tsop48.pdf" width="320" height="52" /> --><div class="objectEmbed"><a href="/file/view/IR-tsop48.pdf/601923834/IR-tsop48.pdf" onclick="ws.common.trackFileLink('/file/view/IR-tsop48.pdf/601923834/IR-tsop48.pdf');"><img src="https://ssl.wikicdn.com/i/mime/32/application/pdf.png" height="32" width="32" alt="IR-tsop48.pdf" /></a><div><a href="/file/view/IR-tsop48.pdf/601923834/IR-tsop48.pdf" onclick="ws.common.trackFileLink('/file/view/IR-tsop48.pdf/601923834/IR-tsop48.pdf');" class="filename" title="IR-tsop48.pdf">IR-tsop48.pdf</a><br /><ul><li><a href="/file/detail/IR-tsop48.pdf">Details</a></li><li><a href="/file/view/IR-tsop48.pdf/601923834/IR-tsop48.pdf">Download</a></li><li style="color: #666">278 KB</li></ul></div></div><!-- ws:end:WikiTextFileRule:166 --><br />
- <br />
- <br />
- <br />
- (Above): a diagram of connecting the receiver to an Arduino. You can <a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=210" rel="nofollow">get these HERE.</a><br />
- <br />
- There are many different manufacturers of IR Receivers and some have different pinouts:<br />
- <!-- ws:start:WikiTextLocalImageRule:159:<img src="/file/view/IR-Receivers-900.jpg/473330184/800x225/IR-Receivers-900.jpg" alt="" title="" style="height: 225px; width: 800px;" /> --><img src="/file/view/IR-Receivers-900.jpg/473330184/800x225/IR-Receivers-900.jpg" alt="IR-Receivers-900.jpg" title="IR-Receivers-900.jpg" style="height: 225px; width: 800px;" /><!-- ws:end:WikiTextLocalImageRule:159 --><br />
- Image courtesy of Alberto Piganti. See: <span style="line-height: 1.5;"><a class="wiki_link_ext" href="http://www.pighixxx.com/" rel="nofollow">http://www.pighixxx.com/</a></span><br />
- <hr />
- <!-- ws:start:WikiTextLocalImageRule:160:<img src="/file/view/Brick-IR-cable2.jpg/545709178/Brick-IR-cable2.jpg" alt="" title="" align="right" /> --><img src="/file/view/Brick-IR-cable2.jpg/545709178/Brick-IR-cable2.jpg" alt="Brick-IR-cable2.jpg" title="Brick-IR-cable2.jpg" align="right" /><!-- ws:end:WikiTextLocalImageRule:160 --><br />
- There is also an easy-to-connect <a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=368" rel="nofollow">IR Receiver Electronic Brick </a>like this (right). It can be plugged into a Sensor Shield or YourDuinoRobo1 with a 3-pin cable.<br />
- <br />
- <strong>CONNECTION NOTE:</strong> The IR Remote Receiver Electronic Brick has 3 pins. From left to right they are: (G) Ground, (V) Voltage, (S) Signal. BUT the marking sometimes vary on the little circuit board. In this photo they are marked G-R-Y. The 3-pin cable in the photo has the typical color code: (G) Ground = Black, (V) Voltage = Red, (S) Signal = White.<br />
- This brick also comes with the <a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=369" rel="nofollow">IR Infrared Robot Remote Control Kit</a> which has a remote with arrow buttons for direction etc. (Scroll down for example). It is also in the <a class="wiki_link" href="https://arduino-info.wikispaces.com/Electronic-Brick-Homepage">YourDuino Electronic Brick Set.</a><br />
- <br />
- <br />
- <hr />
- <br />
- <a class="wiki_link_ext" href="http://www.sbprojects.com/knowledge/ir/index.php" rel="nofollow"> DETAILED IR REMOTE CONTROL INFORMATION</a> (THANKS! to Sam Bergmans)<br />
- <br />
- <!-- ws:start:WikiTextHeadingRule:5:<h2> --><h2 id="toc1"><a name="Infrared (IR) Remote-IR-REMOTE LIBRARY:"></a><!-- ws:end:WikiTextHeadingRule:5 -->IR-REMOTE LIBRARY:</h2>
- <!-- ws:start:WikiTextHeadingRule:7:<h4> --><h4 id="toc2"><a name="Infrared (IR) Remote-IR-REMOTE LIBRARY:--Note: The following library must be installed in your Arduino installation for this to work!"></a><!-- ws:end:WikiTextHeadingRule:7 -->Note: The following library <strong>must</strong> be installed in your Arduino installation for this to work!</h4>
- <a class="wiki_link_ext" href="https://github.com/shirriff/Arduino-IRremote" rel="nofollow">CLICK HERE - IR REMOTE CONTROL: ARDUINO LIBRARY</a><br />
- <br />
- NOTE!! If you have a late version of Arduino with a library IRRobotRemote, it may conflict and you may have to remove that library.<br />
- Make sure to delete Arduino_Root/libraries/RobotIRremote. Where Arduino_Root refers to the install directory of Arduino. The library RobotIRremote has similar definitions to IRremote and causes errors.<br />
- <br />
- NOTE: For Info on easier Library Installs, <a class="wiki_link" href="https://arduino-info.wikispaces.com/Arduino-Libraries">SEE THIS:</a><br />
- <!-- ws:start:WikiTextHeadingRule:9:<h3> --><h3 id="toc3"><a name="Infrared (IR) Remote-IR-REMOTE LIBRARY:-More IR examples and projects on the IRemote wiki HERE:"></a><!-- ws:end:WikiTextHeadingRule:9 -->More IR examples and projects <a class="wiki_link_ext" href="https://github.com/shirriff/Arduino-IRremote/wiki" rel="nofollow">on the IRemote wiki HERE:</a></h3>
- <br />
- <!-- ws:start:WikiTextHeadingRule:11:<h2> --><h2 id="toc4"><a name="Infrared (IR) Remote-TYPES OF IR REMOTE CONTROLS"></a><!-- ws:end:WikiTextHeadingRule:11 -->TYPES OF IR REMOTE CONTROLS<!-- ws:start:WikiTextLocalImageRule:161:<img src="/file/view/Keyes-IR-1-300.jpg/426455182/127x268/Keyes-IR-1-300.jpg" alt="" title="" style="height: 268px; width: 127px;" align="right" /> --><img src="/file/view/Keyes-IR-1-300.jpg/426455182/127x268/Keyes-IR-1-300.jpg" alt="Keyes-IR-1-300.jpg" title="Keyes-IR-1-300.jpg" style="height: 268px; width: 127px;" align="right" /><!-- ws:end:WikiTextLocalImageRule:161 --></h2>
- <strong><span style="background-color: #ffffff; color: #000000; font-family: Arial,Verdana,sans-serif; font-size: medium;">NOTE!! Most handheld remotes are shipped with a small clear plastic piece in the battery compartment that must be removed to activate it. You can usually just pull it out.</span></strong><br />
- There are many different IR remote controls. Some from YourDuino.com are the low-cost <span style="line-height: 1.5;"><a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=153" rel="nofollow">IR Infrared Remote Control Kit 2</a> and also the <a class="wiki_link_ext" href="http://www.yourduino.com/sunshop/index.php?l=product_detail&p=369" rel="nofollow">THIS IR Remote</a> (right) which has directional buttons that would be good for controlling a vehicle etc. Then, there are the typical TV and Stereo Remotes. All of these may have different encoding methods and number of physical buttons, and different codes received when a button is pressed. Below we will give example Software Sketches for a few common IR Remotes.</span><br />
- <br />
- <br />
- <br />
- <!-- ws:start:WikiTextHeadingRule:13:<h2> --><h2 id="toc5"><a name="Infrared (IR) Remote-IRrecvDemo SKETCH:Read codes from almost any IR Remote"></a><!-- ws:end:WikiTextHeadingRule:13 --><span style="line-height: 1.5;">IRrecvDemo SKETCH:Read codes from almost any IR Remote</span></h2>
- <br />
- If you need to discover the codes received from an unknown IR Remote type, use this Sketch from the IR Remote Control Library Examples first. (You <em><strong>must</strong></em> first install that library - the link is above).<br />
- <br />
- <span style="line-height: 1.5;">(Copy and paste into a blank Arduino IDE Window), Upload to your Arduino and start the Serial Monitor window:</span><br />
- <!-- ws:start:WikiTextMediaRule:0:<img src="https://www.wikispaces.com/site/embedthumbnail/custom/28906340?h=0&w=0" class="WikiMedia WikiMediaCustom" id="wikitext@@media@@type=&quot;custom&quot; key=&quot;28906340&quot;" title="Custom Media"/> --><pre>
- <font color="#95A5A6">/*</font>
- <font color="#95A5A6"> * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv</font>
- <font color="#95A5A6"> * An IR detector/demodulator must be connected to the input RECV_PIN.</font>
- <font color="#95A5A6"> * Version 0.1 July, 2009</font>
- <font color="#95A5A6"> * Copyright 2009 Ken Shirriff</font>
- <font color="#95A5A6"> * </font><u><font color="#95A5A6">http://arcfn.com</font></u>
- <font color="#95A5A6"> */</font>
-
- <font color="#5E6D03">#include</font> <font color="#434F54"><</font><font color="#000000">IRremote</font><font color="#434F54">.</font><font color="#000000">h</font><font color="#434F54">></font>
-
- <font color="#00979C">int</font> <font color="#000000">RECV_PIN</font> <font color="#434F54">=</font> <font color="#000000">11</font><font color="#000000">;</font>
-
- <b><font color="#D35400">IRrecv</font></b> <font color="#000000">irrecv</font><font color="#000000">(</font><font color="#000000">RECV_PIN</font><font color="#000000">)</font><font color="#000000">;</font>
-
- <b><font color="#D35400">decode_results</font></b> <font color="#000000">results</font><font color="#000000">;</font>
-
- <font color="#00979C">void</font> <font color="#5E6D03">setup</font><font color="#000000">(</font><font color="#000000">)</font>
- <font color="#000000">{</font>
- <b><font color="#D35400">Serial</font></b><font color="#434F54">.</font><font color="#D35400">begin</font><font color="#000000">(</font><font color="#000000">9600</font><font color="#000000">)</font><font color="#000000">;</font>
- <font color="#000000">irrecv</font><font color="#434F54">.</font><font color="#D35400">enableIRIn</font><font color="#000000">(</font><font color="#000000">)</font><font color="#000000">;</font> <font color="#434F54">// Start the receiver</font>
- <font color="#000000">}</font>
-
- <font color="#00979C">void</font> <font color="#5E6D03">loop</font><font color="#000000">(</font><font color="#000000">)</font> <font color="#000000">{</font>
- <font color="#5E6D03">if</font> <font color="#000000">(</font><font color="#000000">irrecv</font><font color="#434F54">.</font><font color="#D35400">decode</font><font color="#000000">(</font><font color="#434F54">&</font><font color="#000000">results</font><font color="#000000">)</font><font color="#000000">)</font> <font color="#000000">{</font>
- <b><font color="#D35400">Serial</font></b><font color="#434F54">.</font><font color="#D35400">println</font><font color="#000000">(</font><font color="#000000">results</font><font color="#434F54">.</font><font color="#000000">value</font><font color="#434F54">,</font> <font color="#00979C">HEX</font><font color="#000000">)</font><font color="#000000">;</font>
- <font color="#000000">irrecv</font><font color="#434F54">.</font><font color="#D35400">resume</font><font color="#000000">(</font><font color="#000000">)</font><font color="#000000">;</font> <font color="#434F54">// Receive the next value</font>
- <font color="#000000">}</font>
- <font color="#D35400">delay</font><font color="#000000">(</font><font color="#000000">100</font><font color="#000000">)</font><font color="#000000">;</font>
- <font color="#000000">}</font>
-
- </pre><!-- ws:end:WikiTextMediaRule:0 --><br />
- <br />
- <br />
- <hr />
- <br />
- <!-- ws:start:WikiTextHeadingRule:15:<h3> --><h3 id="toc6"><a name="Infrared (IR) Remote-IRrecvDemo SKETCH:Read codes from almost any IR Remote-EXAMPLE: The YourDuino.com IR Infrared Remote Control Kit 2"></a><!-- ws:end:WikiTextHeadingRule:15 -->EXAMPLE: The YourDuino.com <span style="line-height: 1.5;"><a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=153" rel="nofollow">IR Infrared Remote Control Kit 2</a></span></h3>
- <br />
- Below is the <a class="wiki_link_ext" href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=153" rel="nofollow">IR Remote Control Kit</a> connected to a YourDuinoRobo1 with a 3-pin cable. On the right is the detail of the way the IR Receiver is carefully plugged into Gnd and Vcc on the cable, and the Out pin is insulated with a piece stripped from another wire, the pins are cut off evenly, and Out is routed into the Signal (White) pin of the cable. The software below displays the button that was pressed.<br />
- <!-- ws:start:WikiTextLocalImageRule:162:<img src="/file/view/IR-RemoteKit2-Hookup-500.jpg/328198180/IR-RemoteKit2-Hookup-500.jpg" alt="" title="" align="left" /> --><img src="/file/view/IR-RemoteKit2-Hookup-500.jpg/328198180/IR-RemoteKit2-Hookup-500.jpg" alt="IR-RemoteKit2-Hookup-500.jpg" title="IR-RemoteKit2-Hookup-500.jpg" align="left" /><!-- ws:end:WikiTextLocalImageRule:162 --><!-- ws:start:WikiTextLocalImageRule:163:<img src="/file/view/IR-RemoteKit2-ReceiverHookup-650.jpg/328198452/IR-RemoteKit2-ReceiverHookup-650.jpg" alt="" title="" /> --><img src="/file/view/IR-RemoteKit2-ReceiverHookup-650.jpg/328198452/IR-RemoteKit2-ReceiverHookup-650.jpg" alt="IR-RemoteKit2-ReceiverHookup-650.jpg" title="IR-RemoteKit2-ReceiverHookup-650.jpg" /><!-- ws:end:WikiTextLocalImageRule:163 --><br />
- <br />
- Test Arduino Software Sketch for IR Infrared Remote Control Kit 2 (TESTED!!) [Other Versions below]<br />
- <!-- ws:start:WikiTextMediaRule:1:<img src="https://www.wikispaces.com/site/embedthumbnail/custom/22209736?h=0&w=0" class="WikiMedia WikiMediaCustom" id="wikitext@@media@@type=&quot;custom&quot; key=&quot;22209736&quot;" title="Custom Media"/> --><pre>
- <span style="color: #7E7E7E;">/* YourDuino.com Example Software Sketch</span>
- <span style="color: #7E7E7E;"> IR Remote Kit Test</span>
- <span style="color: #7E7E7E;"> Uses YourDuino.com IR Infrared Remote Control Kit 2</span>
- <span style="color: #7E7E7E;"> http://arduino-direct.com/sunshop/index.php?l=product_detail&p=153</span>
- <span style="color: #7E7E7E;"> based on code by Ken Shirriff - http://arcfn.com</span>
- <span style="color: #7E7E7E;"> Get Library at: https://github.com/shirriff/Arduino-IRremote</span>
- <span style="color: #7E7E7E;"> Unzip folder into Libraries. RENAME folder IRremote</span>
- <span style="color: #7E7E7E;"> terry@yourduino.com */</span>
-
- <span style="color: #7E7E7E;">/*-----( Import needed libraries )-----*/</span>
-
- #include <span style="color: #006699;">"IRremote.h"</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare Constants )-----*/</span>
- <span style="color: #CC6600;">int</span> receiver = 11; <span style="color: #7E7E7E;">// pin 1 of IR receiver to Arduino digital pin 11</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare objects )-----*/</span>
- <span style="color: #CC6600;">IRrecv</span> irrecv(receiver); <span style="color: #7E7E7E;">// create instance of 'irrecv'</span>
- <span style="color: #CC6600;">decode_results</span> results; <span style="color: #7E7E7E;">// create instance of 'decode_results'</span>
- <span style="color: #7E7E7E;">/*-----( Declare Variables )-----*/</span>
-
-
- <span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><b>setup</b></span>() <span style="color: #7E7E7E;">/*----( SETUP: RUNS ONCE )----*/</span>
- {
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">begin</span>(9600);
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">"IR Receiver Raw Data + Button Decode Test"</span>);
- irrecv.<span style="color: #CC6600;">enableIRIn</span>(); <span style="color: #7E7E7E;">// Start the receiver</span>
-
- }<span style="color: #7E7E7E;">/*--(end setup )---*/</span>
-
-
- <span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><b>loop</b></span>() <span style="color: #7E7E7E;">/*----( LOOP: RUNS CONSTANTLY )----*/</span>
- {
- <span style="color: #CC6600;">if</span> (irrecv.<span style="color: #CC6600;">decode</span>(&results)) <span style="color: #7E7E7E;">// have we received an IR signal?</span>
-
- {
- <span style="color: #7E7E7E;">// Serial.println(results.value, HEX); UN Comment to see raw values</span>
- translateIR();
- irrecv.<span style="color: #CC6600;">resume</span>(); <span style="color: #7E7E7E;">// receive the next value</span>
- }
- }<span style="color: #7E7E7E;">/* --(end main loop )-- */</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare User-written Functions )-----*/</span>
- <span style="color: #CC6600;">void</span> translateIR() <span style="color: #7E7E7E;">// takes action based on IR code received</span>
-
- <span style="color: #7E7E7E;">// describing Car MP3 IR codes </span>
-
- {
-
- <span style="color: #CC6600;">switch</span>(results.value)
-
- {
-
- <span style="color: #CC6600;">case</span> 0xFFA25D:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" CH- "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF629D:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" CH "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFFE21D:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" CH+ "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF22DD:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" PREV "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF02FD:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" NEXT "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFFC23D:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" PLAY/PAUSE "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFFE01F:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" VOL- "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFFA857:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" VOL+ "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF906F:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" EQ "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF6897:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 0 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF9867:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 100+ "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFFB04F:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 200+ "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF30CF:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 1 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF18E7:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 2 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF7A85:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 3 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF10EF:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 4 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF38C7:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 5 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF5AA5:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 6 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF42BD:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 7 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF4AB5:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 8 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">case</span> 0xFF52AD:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 9 "</span>);
- <span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">default</span>:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" other button "</span>);
-
- }
-
- <span style="color: #CC6600;">delay</span>(500);
-
-
- } <span style="color: #7E7E7E;">//END translateIR</span>
-
-
-
- <span style="color: #7E7E7E;">/* ( THE END ) */</span>
-
- </pre><!-- ws:end:WikiTextMediaRule:1 --><br />
- <br />
- OTHER IR Remote Kit Test Sketches (Click to Download):<br />
- <br />
- <!-- ws:start:WikiTextFileRule:167:<img src="https://www.wikispaces.com/site/embedthumbnail/file/IR_Remote_Kit_Numeric.pde?h=52&w=320" class="WikiFile" id="wikitext@@file@@IR_Remote_Kit_Numeric.pde" title="File: IR_Remote_Kit_Numeric.pde" width="320" height="52" /> --><div class="objectEmbed"><a href="/file/view/IR_Remote_Kit_Numeric.pde/330172406/IR_Remote_Kit_Numeric.pde" onclick="ws.common.trackFileLink('/file/view/IR_Remote_Kit_Numeric.pde/330172406/IR_Remote_Kit_Numeric.pde');"><img src="https://ssl.wikicdn.com/i/mime/32/empty.png" height="32" width="32" alt="IR_Remote_Kit_Numeric.pde" /></a><div><a href="/file/view/IR_Remote_Kit_Numeric.pde/330172406/IR_Remote_Kit_Numeric.pde" onclick="ws.common.trackFileLink('/file/view/IR_Remote_Kit_Numeric.pde/330172406/IR_Remote_Kit_Numeric.pde');" class="filename" title="IR_Remote_Kit_Numeric.pde">IR_Remote_Kit_Numeric.pde</a><br /><ul><li><a href="/file/detail/IR_Remote_Kit_Numeric.pde">Details</a></li><li><a href="/file/view/IR_Remote_Kit_Numeric.pde/330172406/IR_Remote_Kit_Numeric.pde">Download</a></li><li style="color: #666">3 KB</li></ul></div></div><!-- ws:end:WikiTextFileRule:167 --> - Same as example above, but returns a number for the button pressed:<br />
- 0..9,100,200, top 9 buttons encoded 10..18, -1 Bad Code, -2 REPEAT<br />
- <!-- ws:start:WikiTextFileRule:168:<img src="https://www.wikispaces.com/site/embedthumbnail/file/IR_Remote_Kit_Blink.pde?h=52&w=320" class="WikiFile" id="wikitext@@file@@IR_Remote_Kit_Blink.pde" title="File: IR_Remote_Kit_Blink.pde" width="320" height="52" /> --><div class="objectEmbed"><a href="/file/view/IR_Remote_Kit_Blink.pde/330174204/IR_Remote_Kit_Blink.pde" onclick="ws.common.trackFileLink('/file/view/IR_Remote_Kit_Blink.pde/330174204/IR_Remote_Kit_Blink.pde');"><img src="https://ssl.wikicdn.com/i/mime/32/empty.png" height="32" width="32" alt="IR_Remote_Kit_Blink.pde" /></a><div><a href="/file/view/IR_Remote_Kit_Blink.pde/330174204/IR_Remote_Kit_Blink.pde" onclick="ws.common.trackFileLink('/file/view/IR_Remote_Kit_Blink.pde/330174204/IR_Remote_Kit_Blink.pde');" class="filename" title="IR_Remote_Kit_Blink.pde">IR_Remote_Kit_Blink.pde</a><br /><ul><li><a href="/file/detail/IR_Remote_Kit_Blink.pde">Details</a></li><li><a href="/file/view/IR_Remote_Kit_Blink.pde/330174204/IR_Remote_Kit_Blink.pde">Download</a></li><li style="color: #666">3 KB</li></ul></div></div><!-- ws:end:WikiTextFileRule:168 --> Blinks Pin 13 number of times according to button number. This may be a place to start when writing your own code to take actions depending on the button.<br />
- <hr />
- <br />
- <!-- ws:start:WikiTextHeadingRule:17:<h2> --><h2 id="toc7"><!-- ws:end:WikiTextHeadingRule:17 --> </h2>
- <br />
- If you use the IRrecvDemo Sketch (above) and count the 21 buttons from left to right and top to bottom, the codes received are these: (NOTE: Receiving "FFFFFFFF" means "repeat" if you hold the button down.)<br />
-
-
- <table class="wiki_table">
- <tr>
- <td style="text-align: right;">1<br />
- </td>
- <td style="text-align: right;">FFA25D<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">2<br />
- </td>
- <td style="text-align: right;">FF629D<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">3<br />
- </td>
- <td style="text-align: right;">FFE21D<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">4<br />
- </td>
- <td style="text-align: right;">FF22DD<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">5<br />
- </td>
- <td style="text-align: right;">FF02FD<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">6<br />
- </td>
- <td style="text-align: right;">FFC23D<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">7<br />
- </td>
- <td style="text-align: right;">FFE01F<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">8<br />
- </td>
- <td style="text-align: right;">FFA857<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">9<br />
- </td>
- <td style="text-align: right;">FF906F<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">10<br />
- </td>
- <td style="text-align: right;">FF6897<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">11<br />
- </td>
- <td style="text-align: right;">FF9867<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">12<br />
- </td>
- <td style="text-align: right;">FFB04F<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">13<br />
- </td>
- <td style="text-align: right;">FF30CF<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">14<br />
- </td>
- <td style="text-align: right;">FF18E7<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">15<br />
- </td>
- <td style="text-align: right;">FF7A85<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">16<br />
- </td>
- <td style="text-align: right;">FF10EF<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">17<br />
- </td>
- <td style="text-align: right;">FF38C7<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">18<br />
- </td>
- <td style="text-align: right;">FF5AA5<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">19<br />
- </td>
- <td style="text-align: right;">FF42BD<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">20<br />
- </td>
- <td style="text-align: right;">FF4AB5<br />
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">21<br />
- </td>
- <td style="text-align: right;">FF52AD<br />
- </td>
- </tr>
- </table>
-
- <hr />
- <!-- ws:start:WikiTextHeadingRule:19:<h2> --><h2 id="toc8"><!-- ws:end:WikiTextHeadingRule:19 --><!-- ws:start:WikiTextAnchorRule:23:<img src="/i/anchor.gif" class="WikiAnchor" alt="Anchor" id="wikitext@@anchor@@IRR" title="Anchor: IRR"/> --><a name="IRR"></a><!-- ws:end:WikiTextAnchorRule:23 --></h2>
- <!-- ws:start:WikiTextHeadingRule:21:<h2> --><h2 id="toc9"><a name="Infrared (IR) Remote-Example: MAKER Version Electronic Brick Set IR Remote"></a><!-- ws:end:WikiTextHeadingRule:21 -->Example: MAKER Version Electronic Brick Set IR Remote</h2>
- <!-- ws:start:WikiTextLocalImageRule:164:<img src="/file/view/Keyes-IR-1-300.jpg/426455182/Keyes-IR-1-300.jpg" alt="" title="" align="right" /> --><img src="/file/view/Keyes-IR-1-300.jpg/426455182/Keyes-IR-1-300.jpg" alt="Keyes-IR-1-300.jpg" title="Keyes-IR-1-300.jpg" align="right" /><!-- ws:end:WikiTextLocalImageRule:164 -->The IR Remote supplied with this Set looks like this (Others may also be supplied):<br />
- <br />
- - Based on NEC protocol; Built-in 1 x AG10 battery;<br />
- <span style="line-height: 1.5;">- Remote control range: above 8m;</span><br />
- <span style="line-height: 1.5;">- Wavelength: 940Nm;</span><br />
- - Frequency: crystal oscillator: 455KHz; IR carrier frequency: 38KHz<br />
- <br />
- This is especially good for remote control of a small robot, using the arrow buttons. Below is an example Software Sketch for this remote. The reported buttons will be <strong>Forward, Left, Right, Reverse</strong> (for the 4 blue button), <strong>OK</strong> for the red 'OK' button, <strong>1 to 0</strong> for the white number buttons, and <strong>'*'</strong> and <strong>'#'</strong> for the bottom red buttons.<br />
- <br />
- (Copy and paste the Sketch below into a blank Arduino IDE Window), Upload to your Arduino and start the Serial Monitor window. Connect the IR receiver to +5V, Ground and the signal to pin 11. If you have the MAKER Version Electronic Brick Starter Set you can just plug in the supplied IR Receiver Brick with one of the 3-pin cables.<br />
- <!-- ws:start:WikiTextMediaRule:2:<img src="https://www.wikispaces.com/site/embedthumbnail/custom/22852050?h=0&w=0" class="WikiMedia WikiMediaCustom" id="wikitext@@media@@type=&quot;custom&quot; key=&quot;22852050&quot;" title="Custom Media"/> --><pre>
- <span style="color: #7E7E7E;">/* YourDuino.com Example Software Sketch</span>
- <span style="color: #7E7E7E;"> Brick Starter Set IR Remote Kit Test</span>
- <span style="color: #7E7E7E;">http://yourduino.com/sunshop2/index.php?l=product_detail&p=364</span>
- <span style="color: #7E7E7E;"> based on code by Ken Shirriff - http://arcfn.com</span>
- <span style="color: #7E7E7E;"> Get Library at: https://github.com/shirriff/Arduino-IRremote</span>
- <span style="color: #7E7E7E;"> Unzip folder into Libraries. RENAME folder IRremote</span>
- <span style="color: #7E7E7E;"> terry@yourduino.com */</span>
-
- <span style="color: #7E7E7E;">/*-----( Import needed libraries )-----*/</span>
-
- #include <span style="color: #006699;">"IRremote.h"</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare Constants )-----*/</span>
- <span style="color: #CC6600;">int</span> receiver = 11; <span style="color: #7E7E7E;">// pin 1 of IR receiver to Arduino digital pin 11</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare objects )-----*/</span>
- <span style="color: #CC6600;">IRrecv</span> irrecv(receiver); <span style="color: #7E7E7E;">// create instance of 'irrecv'</span>
- <span style="color: #CC6600;">decode_results</span> results; <span style="color: #7E7E7E;">// create instance of 'decode_results'</span>
- <span style="color: #7E7E7E;">/*-----( Declare Variables )-----*/</span>
-
-
- <span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><b>setup</b></span>() <span style="color: #7E7E7E;">/*----( SETUP: RUNS ONCE )----*/</span>
- {
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">begin</span>(9600);
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">"YourDuino IR Receiver Button Decode Test"</span>);
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">"Questions: terry@yourduino.com"</span>);
- irrecv.<span style="color: #CC6600;">enableIRIn</span>(); <span style="color: #7E7E7E;">// Start the receiver</span>
-
- }<span style="color: #7E7E7E;">/*--(end setup )---*/</span>
-
-
- <span style="color: #CC6600;">void</span> <span style="color: #CC6600;"><b>loop</b></span>() <span style="color: #7E7E7E;">/*----( LOOP: RUNS CONSTANTLY )----*/</span>
- {
- <span style="color: #CC6600;">if</span> (irrecv.<span style="color: #CC6600;">decode</span>(&results)) <span style="color: #7E7E7E;">// have we received an IR signal?</span>
-
- {
- <span style="color: #7E7E7E;">// Serial.println(results.value, HEX); UN Comment to see raw values</span>
- translateIR();
- irrecv.<span style="color: #CC6600;">resume</span>(); <span style="color: #7E7E7E;">// receive the next value</span>
- }
- }<span style="color: #7E7E7E;">/* --(end main loop )-- */</span>
-
- <span style="color: #7E7E7E;">/*-----( Declare User-written Functions )-----*/</span>
- <span style="color: #CC6600;">void</span> translateIR() <span style="color: #7E7E7E;">// takes action based on IR code received</span>
-
- <span style="color: #7E7E7E;">// describing KEYES Remote IR codes </span>
-
- {
-
- <span style="color: #CC6600;">switch</span>(results.value)
-
- {
-
- <span style="color: #CC6600;">case</span> 0xFF629D: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" FORWARD"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF22DD: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" LEFT"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF02FD: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" -OK-"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFFC23D: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" RIGHT"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFFA857: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" REVERSE"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF6897: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 1"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF9867: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 2"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFFB04F: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 3"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF30CF: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 4"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF18E7: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 5"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF7A85: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 6"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF10EF: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 7"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF38C7: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 8"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF5AA5: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 9"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF42BD: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" *"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF4AB5: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" 0"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFF52AD: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" #"</span>); <span style="color: #CC6600;">break</span>;
- <span style="color: #CC6600;">case</span> 0xFFFFFFFF: <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" REPEAT"</span>);<span style="color: #CC6600;">break</span>;
-
- <span style="color: #CC6600;">default</span>:
- <span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">println</span>(<span style="color: #006699;">" other button "</span>);
-
- }<span style="color: #7E7E7E;">// End Case</span>
-
- <span style="color: #CC6600;">delay</span>(500); <span style="color: #7E7E7E;">// Do not get immediate repeat</span>
-
-
- } <span style="color: #7E7E7E;">//END translateIR</span>
-
-
-
- <span style="color: #7E7E7E;">/* ( THE END ) */</span>
-
-
- </pre><!-- ws:end:WikiTextMediaRule:2 -->
- </div>
-
- <div id="pageEditor" class="editorWrapper editorLayer">
- <iframe id="target_editor" name="target_editor" src="/s/blank.html" style="width:0px;height:0px;border:0"></iframe>
- <form action="/page/edit/IR-RemoteControl" method="post" class="editorForm" id="editorForm"><input type="hidden" name="wikispacesFormToken" value="7449be2a26007d23bdcea9090614674605729703"/><div class="jowic"><input type="text" class="form-control" name="wikispaces_user_id" value="user-1537512281"/></div><div class="jovise"><input type="text" class="form-control" name="goto" autocomplete = "off"/></div><div class="movkp"><input type="text" class="form-control" name="mode" autocomplete = "off"/></div><div class="movkp"><input type="text" class="form-control" name="version" autocomplete = "off"/></div><div class="jowic"><input type="text" class="form-control" name="pageComments" autocomplete = "off"/></div><div class="jovise"><input type="text" class="form-control" name="saveAndContinue" autocomplete = "off"/></div><div class="jowic"><input type="text" class="form-control" name="comment" autocomplete = "off"/></div><div class="jovise"><input type="text" class="form-control" name="commentsDisabled" autocomplete = "off"/></div><div class="jowic"><input type="text" class="form-control" name="contentPresent" autocomplete = "off"/></div><div class="mimw"><input type="text" class="form-control" name="editorCleanup" autocomplete = "off"/></div><div class="jovise"><input type="text" class="form-control" name="WikispacesEditorContent" autocomplete = "off"/></div><input type="hidden" name="wikispacesASFormToken" value="d19f8890055b5f258918cbf89b32bca72ff94703"/>
- <input type="hidden" title="goto" name="3f24b49addd7634ebf697e238f802c7ee3b647aa" value=""/>
- <input type="hidden" title="mode" name="1a3194dd09af7d06bacfa59feef7fc53402a641d" autocomplete="off" value="visual"/>
- <input type="hidden" title="version" name="173fdb863fb82d39a9b4dfc8c52056bb66c53290" autocomplete="off" value="601923850"/>
- <input type="hidden" title="pageComments" name="0b4481cd46c945a4d5219a1de6c8f4bbacc76e66" autocomplete="off" value=""/>
- <input type="hidden" title="saveAndContinue" name="064964848f23772d96544e6b46f01b8591a72b66" value="0"/>
- <input type="hidden" title="comment" name="57a8e0afc135eb45dd8ae902c4503c981680a022" value=""/>
- <input type="hidden" title="commentsDisabled" name="d50a8d00a6795b2ee0a8b9d3cbf4f83b01e48999" autocomplete="off" value=""/>
- <input type="hidden" title="contentPresent" name="3607a42f3bf8b463030767b762983110e72f1d90" autocomplete="off" value=""/>
- <input type="hidden" title="editorCleanup" name="fb74b162aeee5c41d2491e16598d01f769b6a917" autocomplete="off" value=""/>
-
- <textarea id="wsMainEditor" title="content" class="noContentHide" name="665e33e18adc5cdf0dee61698f16c0b2f13ba78a" style="width: 100%; position: absolute; top: -50000px; left: -50000px;" autocomplete="off"></textarea>
-
- <noscript>
- <h2>Javascript Required</h2>
- <p>You need to enable Javascript in your browser to edit pages.</p>
- </noscript>
-
- </form>
-
-
- <div id="plainTextEditor" style="position:relative;display:none" class="editorLayer" >
- <textarea id="textEditor" class="autogrow"></textarea>
- <p style="clear:both;" align="right"><a href="http://helpcenter.wikispaces.com/customer/portal/articles/1959131-wikitext">help on how to format text</a></p>
- </div>
- </div>
-
-
-
-
- </div>
- <div class="commentColumn WikispacesStream"><div class="WikispacesContent WikispacesBs3"><div class="commentList"></div></div></div>
- </div>
-
-
-
-
-
-
- <script type="text/template" id="js-event-template">
- <small>
- <%- startDateShortFormat %>
- <a href="<%- ws.common.pathFor('event', 'view', id) %>" class="WikispacesDialogLink">
- <%- ws.common.truncate(title, 15) %>
- </a>
- </small>
- </script>
-
- <script type="text/template" id="js-reply-template">
- <div class="tc-timeline-comment media">
-
- <a class="pull-left userLink" href="<%- userCreated.url %>">
- <img src="<%- userCreated.imageUrl %>" width="30" height="30" class="author-avatar" alt="" />
- </a>
- <div class="media-body" data-id="<%= id %>">
- <% if (ws.context.user.canAdministerWiki) { %>
- <i class="tc-delete-comment fa fa-trash-o contextual-command destroy-message ws-tip" title="Delete reply"></i>
- <% } %>
- <div class="tc-box-name-date">
- <span class="tc-commenter"><a href="<%- userCreated.url %>"><%- userCreated.username %></a></span>
- <% if (smartDate == '__live__') { %>
- <abbr style="border-bottom-style: none;" class="timeago tc-comment-date" title="<%- (new Date(parseInt(dateCreated) * 1000)).toISOString() %>">
- <%- (new Date(parseInt(dateCreated) * 1000)).toDateString() %>
- </abbr>
- <% } else { %>
- <abbr style="border-bottom-style: none;" class="tc-comment-date"><%- smartDate %></abbr>
- <% } %>
- </div>
- <% if (body) { %>
- <p>
- <%= body %>
- </p>
- <% } %>
- </div>
- </div>
- </script>
-
- <script type="text/template" id="js-share-template">
- <div class="tc-timeline-block tc-<%= ws.stream.typeToBlockType(sharedType) %>-block" <%= (ws.stream.hideTimeline ? 'style="padding-left: 0px;"' : '') %>>
-
- <% if (!ws.stream.hideTimeline) { %>
- <div class="tc-timeline-icon">
- <i class="fa fa-<%= ws.stream.typeToIcon(sharedType) %>"></i>
- </div>
- <div class="tc-timeline-triangle-man"></div>
- <% } %>
-
- <div class="tc-timeline-box" data-id="<%= id %>">
- <div class="media">
- <a class="pull-left userLink" href="<%- userCreated.url %>">
- <img src="<%- userCreated.imageUrl %>" width="48" height="48" class="author-avatar media-object" alt="" />
- </a>
-
- <div class="media-body">
-
- <div class="tc-stream-dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-chevron-down"></i>
- </a>
- <ul class="dropdown-menu dropdown-menu-right" role="menu">
- <% if (ws.context.user.id) { %>
- <li>
- <a class="js-toggle-monitor" tabindex="-1" href="#">
- <i class="fa-fw fa fa-eye"></i>
- <span><%= monitored ? 'Start Monitoring' : 'Stop Monitoring' %></span>
- </a>
- </li>
- <% } %>
-
- <% if (ws.context.user.canAdministerWiki) { %>
- <li>
- <a class="js-toggle-lock" tabindex="-1" href="#">
- <i class="fa-fw fa fa-lock"></i>
- <span><%= locked ? 'Unlock Replies' : 'Lock Replies' %></span>
- </a>
- </li>
- <% if (sharedType == 'discussion' || sharedType == 'comment' || sharedType == 'event') { %>
- <li>
- <a class="js-destroy-share" tabindex="-1" href="#">
- <i class="fa-fw fa fa-trash-o"></i>
- Delete <%= ws.stream.typeToName(sharedType) %>
- </a>
- </li>
- <% } %>
- <% } %>
- </ul>
- </div>
-
- <div class="tc-timeline-box-header ws-reveal media-heading">
- <h3 class="tc-box-title">
- <% if (typeof adminLink !== 'undefined' && adminLink && ws.context.user.canAdministerWiki) { %>
- <a href="<%- adminLink %>"><%- title %></a>
- <% } else { %>
- <%- title %>
- <% } %>
- <% if (typeof startDate !== 'undefined' && startDate) { %> - <%= startDateShortFormat %> <%= ws.stream.getYearFromStartDate(startDate) %><% } %>
- </h3>
- <div class="tc-box-name-date">
- <% if (ws.context.instance.isTesClassroom) { %>
- <%- userCreated.username %>
- <% } else { %>
- <a class="author-name" href="<%- userCreated.url %>"><%- userCreated.username %></a>
- <% } %>
- <% if (typeof recipients !== 'undefined' && recipients) { %>
- <i class="fa fa-angle-right"></i>
- <% if (typeof recipientsLink !== 'undefined') { %>
- <a href="<%- recipientsLink %>"><%- recipients %></a>
- <% } else { %>
- <span class="recipients"><%- recipients %></span>
- <% } %>
- <% } %>
- <% if (smartDate == '__live__') { %>
- <abbr style="border-bottom-style: none;" class="timeago tc-block-date" title="<%= (new Date(parseInt(dateCreated) * 1000)).toISOString() %>">
- <%= (new Date(parseInt(dateCreated) * 1000)).toDateString() %>
- </abbr>
- <% } else { %>
- <abbr style="border-bottom-style: none;" class="tc-block-date"><%- smartDate %></abbr>
- <% } %>
- </div>
- </div>
-
- <div class="<%= sharedType == 'comment' && !orphaned && !ws.stream.noCollapse ? 'hidden ' : '' %>tc-block-content">
- <div class="clearfix">
- <% if (typeof rangeActions !== 'undefined') { %>
- <div class="tc-range-actions">
- <% for(var i = 0; i < rangeActions.length; i++) { %>
- <%= ws.stream.rangeActionTemplate(rangeActions[i]) %>
- <% } %>
- </div>
- <% } %>
- <% if (description) { %>
- <p><%= description %></p>
- <% } %>
- </div>
- </div>
-
- <% if (replyPages.length > 0 && !(replyPages.length === 1 && replyPages[0].digests.length === 0)) { %>
- <div class="tc-timeline-comments">
- <% for (var i = 0; i < replyPages.length; i++) { %>
- <% if (i == 0 && replyPages[i].more) { %>
- <a href="#" class="tc-show-more" onclick="ws.stream.pageReplies(<%= id %>, <%= replyPages[i].page + 1 %>); return false">Show more replies (<%= replyPages[i].more %> hidden) </a>
- <% } else { %>
- <div></div>
- <% } %>
- <% for (var j = 0; j < replyPages[i].digests.length; j++) { %>
- <%= ws.stream.replyTemplate(replyPages[i].digests[j]) %>
- <% } %>
- <% } %>
- </div>
- <% } %>
-
- <% if ((ws.stream.userCanPostMessage && !locked) || ws.context.user.canAdministerWiki) { %>
- <div class="tc-add-comment media <%= ws.stream.noCollapse ? 'add-active' : ''%>">
- <img src="<%- ws.context.user.imageUrlPrefix %>lg.jpg" width="30" height="30" class="pull-left author-avatar" alt="" />
- <div class="media-body">
- <textarea name="reply" placeholder="Comment" class="form-control form-control-tc ws-reveal <%= !ws.stream.noCollapse ? 'ws-unrevealed' : ''%> reply" /></textarea>
- <button type="button" class="btn-tc btn-info-tc btn-sm-tc add-reply">Post</button>
- </div>
- </div>
- <% } %>
- </div>
-
- </div>
- </div>
- </div>
- </script>
-
- <script type="text/template" id="js-range-action-template">
- <div>
- <strong><%- name %></strong>
- <% if (typeof(diffUrl) !== 'undefined') { %>
- <a href="<%- diffUrl %>">
- <% } %>
- <%= new Date(dateCreated * 1000).toLocaleString() %>
- <% if (typeof(diffUrl) !== 'undefined') { %>
- </a>
- <% } %>
- <% if (typeof(rangeText) !== 'undefined') { %>
- <div>
- <span class="commentExtent">
- <% if (typeof(diffUrl) !== 'undefined') { %>
- <a href="<%- diffUrl %>">
- <% } %>
- <%= rangeText %>
- <% if (typeof(diffUrl) !== 'undefined') { %>
- </a>
- <% } %>
- </span>
- </div>
- <% } %>
- </div>
- </script>
-
- <script type="text/template" id="js-stream-end-template">
- <div class="tc-timeline-block tc-end-block">
- <div class="tc-timeline-icon" style="margin-top: -10px;" />
- <div class="tc-timeline-box" style="visibility: hidden;">
- <p class="tc-box-title"></p>
- </div>
- </div>
- </script>
-
- <a name="discussion"></a>
- <div class="timeline WikispacesBs3 tc-timeline-embedded show-border">
- <div class="timeline-line"></div>
- <div id="js-share-list">
- <div class="spinner hidden"><i class="fa fa-spinner fa-spin"></i></div>
- </div>
- </div></div></div><div id="sentinel" style="clear:both"></div> </div>
- </main>
- </div>
- </div>
- </div>
-
- <footer class="ws-theme-footer" role="contentinfo">
- <div class="ws-theme-container">
- <div class="ws-theme-footer-inner">
- <div class="WikiFooterNav WikiElement">
- <a href="http://helpcenter.wikispaces.com/" rel="nofollow" class="js-help-trigger">Help</a> ·
- <a href="https://www.wikispaces.com/about">About</a> ·
- <a href="https://www.wikispaces.com/content/pricing" rel="nofollow">Pricing</a> ·
- <a href="https://www.wikispaces.com/privacy" rel="nofollow">Privacy</a> ·
- <a href="https://www.wikispaces.com/terms" rel="nofollow">Terms</a> ·
- <a href="https://www.wikispaces.com/site/help?url=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl%3FresponseToken%3D0236859e09b5634170a211f2a7931a934" rel="nofollow"><strong>Support</strong></a></div> <div class="WikiLicense WikiElement">Contributions to https://arduino-info.wikispaces.com/ are licensed under a <a rel="license" href="http://www.creativecommons.org/licenses/by-nc/3.0">Creative Commons Attribution Non-Commercial 3.0 License</a>. <a rel="license" href="http://www.creativecommons.org/licenses/by-nc/3.0"><img src="https://ssl.wikicdn.com/i/creativecommons/by-nc_3.0_80x15.png" width="85" height="15" alt="Creative Commons Attribution Non-Commercial 3.0 License"/></a><br />Portions not contributed by visitors are Copyright 2018 Tangient LLC<br /><a href="https://www.tes.com/us/?utm_source=wikispaces&utm_medium=link&utm_campaign=US-52-footer">TES: The largest network of teachers in the world</a></div> </div>
- </div>
- </footer>
-
-
- <script type="text/template" id="dialog-template">
- <div class="modal fade" role="dialog" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
- <h4 class="modal-title"><%= header %></h4>
- </div>
- <div class="modal-body">
- <%= body %>
- </div>
- </div>
- </div>
- </div>
- </script>
-
-
- <div id="js-help-template" class="hidden">
- <div class="ws-help">
- <div class="js-help-controls WikispacesContent WikispacesBs3">
- <a href="https://www.wikispaces.com/site/gettingstarted/off" class="btn btn-default hidden js-getting-started-off pull-right">Turn off "Getting Started"</a>
- <ol class="breadcrumb">
- <li class="js-special-breadcrumb active">
- <a href="http://helpcenter.wikispaces.com/" data-breadcrumb="0">Home</a>
- </li>
- <li class="js-ellipsis hidden js-special-breadcrumb">
- ...
- </li>
- <li class="js-spinner hidden js-special-breadcrumb"><i class="fa fa-spinner fa-spin"></i></li>
- </ol>
- </div>
- <div class="ws-help-content wiki">Loading...</div>
- </div>
- </div>
- </div>
- <script src="https://ssl.wikicdn.com/s/gz/kz89z616-common.min.js" type="text/javascript"></script>
- <script src="https://ssl.wikicdn.com/s/gz/70163536-editorc.min.js" type="text/javascript"></script>
- <script src="https://ssl.wikicdn.com/s/gz/85k7018k-stream.min.js" type="text/javascript"></script>
- <script src="https://ssl.wikicdn.com/s/gz/91k8z207-contentbar.min.js" type="text/javascript"></script>
- <script src="https://ssl.wikicdn.com/s/gz/395j1vq7-component.stream-vo.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- <!--
- ws.namespace('ws.attributes');
- ws.namespace('ws.stream');
- ws.attributes.DISCUSSION_COUNT = 4;
- ws.attributes.pageId = 81083716;
- ws.attributes.version = 601923850;
- ws.attributes.showEditor = true;
- ws.attributes.editUrl = "https:\/\/arduino-info.wikispaces.com\/page\/edit\/IR-RemoteControl?goto=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl";
- ws.attributes.userCanEdit = false;
- ws.stream.userCanPostMessage = false;
- ws.stream.hideTimeline = true;
- ws.stream.shareSource = "https:\/\/arduino-info.wikispaces.com\/page\/shares\/IR-RemoteControl";
-
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
-
- jQuery(document).ready(function() {
- ws.common.addJsonNotices({"warning":[],"error":[],"info":[],"success":[]});
- });
-
- jQuery(document).ready(function() {
- ws.common.addNotice("<script type=\"text\/javascript\"> $.get(\"\/user\/banneraction\/close-plus-super-wikis\", function(){}).done(); function wsDismissBanner() { ws.common.removeNotice(); ws.cookie.set(\"qps\", 1, {expires: 365 * 86400, domain: \".wikispaces.com\"}); $.get(\"\/user\/banneraction\/close-plus-super-wikis\/close\", function(){}).done(); return false;}$(\".ui-pnotify-closer\").remove();<\/script><i class=\"fa fa-times fa-fw ws-close\" onclick=\"wsDismissBanner();\"><\/i>It's time for us to say farewell... All Plus and Super Wikis will be closing as of September 30th, 2018 at 23.59 GMT and you will no longer be able to access these Wikis. You have 9 day(s) left to obtain your data. If you are a Wiki Organizer, for more information, please log into your account and click <a href='\/space\/announcement' target='_top'>HERE<a\/> ", "warning");
- });
-
- jQuery(document).ready(function($) {
-
- function tipPlacement() {
- return this.$element.closest('.ws-menu-bar .btn-group').is('.open') ? 'top' : 'bottom';
- }
-
-
-
- $('.ws-menu-bar').each(function() {
- var $menuBar = $(this);
- var $tagDropdown = $menuBar.find('.ws-tag-dropdown-menu');
- $menuBar.find('.tipme').tooltip({placement: tipPlacement, container: '.ws-menu-bar'});
-
-
- $menuBar.find('.ws-btn-more').click(ws.common.makeLinkClickFunction(function(e) {
- if ($(this).closest('.ws-menu-bar .btn-group').is('.open')) {
- ws.common.hideMorePageBar();
- } else {
- ws.common.showMorePageBar();
- }
- }));
-
- $menuBar.on('click', '.ws-tag-dropdown-toggle', ws.common.makeLinkClickFunction(function(e) {
- if ($(this).closest('.ws-menu-bar .dropdown').is('.open')) {
- ws.common.hideTagDropdown();
- } else {
- ws.common.showTagDropdown();
- }
- }));
-
- $(document.body).click(function(e) {
- var $target = $(e.target);
- if (!$target.closest('.ws-more-menu').closest('.ws-menu-bar').is($menuBar)
- || $target.closest('a').is('.WikispacesDialogLink')) {
- ws.common.hideMorePageBar();
- }
- if ($tagDropdown.length && !$target.closest('.ws-tag-dropdown-menu').is($tagDropdown)) {
- ws.common.hideTagDropdown();
- }
- });
-
- });
- });
-
-
- jQuery(document).ready(function($) {
- $('.ws-more-menu').on('click', 'a', function(e) {
- if ($(this).is('.disabled')) {
- e.preventDefault();
- }
- });
- });
-
-
- jQuery(document).ready(function() {
- ws.editor.canEdit = false;
- var editUrl = 'https://arduino-info.wikispaces.com/page/edit/IR-RemoteControl?goto=https%3A%2F%2Farduino-info.wikispaces.com%2FIR-RemoteControl';
-
- jQuery('#js-edit-from-template').change(function() {
- window.location = ws.common.addUriParams(editUrl, [['template', jQuery(this).val()]]);
- });
- });
-
-
- jQuery(document).ready(function() {
- ws.editor.loadEditorLibs('https://www.wikispaces.com/site/editorlibs/en_US/11kk95v9.gz.js');
- });
-
-
- ws.editor.startEditor = function (moreCoreOptions, moreMainOptions) {
- ws.editor.canEdit = true;
-
- var coreOptions = {
- 'content_css': ['https://arduino-info.wikispaces.com/stylesheet/editor/583997825-217420326D.gz.css']
- };
-
- // The stylesheet is passed in as a string, turn it into an array
- // Add bootstrap styles to the editor, if we are in a theme that has full screen bootstrap
- if (jQuery('body').is('.WikispacesBs3')) {
- coreOptions.content_css.push('https://www.wikispaces.com//s/internal-bootstrap-body.css');
- }
-
- var mainOptions = {
- 'wssave_cancel_url': '/IR-RemoteControl',
- 'wsimage_upload_url': 'https://arduino-info.wikispaces.com/file/multiupload',
- 'wsimage_max_file_size_mb': '50',
- 'wsimage_page_view_group': ''
- };
-
- ws.editor.loadEditor(jQuery.extend(coreOptions, moreCoreOptions), jQuery.extend(mainOptions, moreMainOptions));
- };
-
- var wikispaces_page_version = '601923850';
-
- jQuery(document).ready(function() {
- ws.editor.enableButtons();
- });
-
-
-
- --></script><!-- w23 84 mem:1:10(29) wki:1:2(2) tot:84:84(1) dql:1:1(1) -->
-
- </body>
- </html>
|