|
@ -0,0 +1,668 @@ |
|
|
|
|
|
<!DOCTYPE html> |
|
|
|
|
|
<html> |
|
|
|
|
|
<head> |
|
|
|
|
|
<meta charset="UTF-8"> |
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://forum.arduino.cc/Themes/default/css/index.css?alph21"> |
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://forum.arduino.cc/Themes/default/css/responsive.css?alph21"> |
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://forum.arduino.cc/Themes/default/css/jquery.sceditor.css?alph21"> |
|
|
|
|
|
<style> |
|
|
|
|
|
img.avatar { max-width: 65px; max-height: 65px; }</style> |
|
|
|
|
|
<script><!-- // --><![CDATA[
|
|
|
|
|
|
var smf_theme_url = "https://forum.arduino.cc/Themes/default"; |
|
|
|
|
|
var smf_default_theme_url = "https://forum.arduino.cc/Themes/default"; |
|
|
|
|
|
var smf_images_url = "https://forum.arduino.cc/Themes/default/images"; |
|
|
|
|
|
var smf_smileys_url = "https://forum.arduino.cc/Smileys"; |
|
|
|
|
|
var smf_scripturl = "https://forum.arduino.cc/index.php"; |
|
|
|
|
|
var smf_iso_case_folding = false; |
|
|
|
|
|
var smf_charset = "UTF-8"; |
|
|
|
|
|
var smf_session_id = "df02d161f4996114f7660f860e48f2fe"; |
|
|
|
|
|
var smf_session_var = "f185f8635"; |
|
|
|
|
|
var smf_member_id; |
|
|
|
|
|
var ajax_notification_text = 'Loading...'; |
|
|
|
|
|
var help_popup_heading_text = 'A little lost? Let me explain:'; |
|
|
|
|
|
// ]]></script>
|
|
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/smf_jquery_plugins.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/script.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/theme.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/editor.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/jquery.sceditor.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/jquery.sceditor.bbcode.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/jquery.sceditor.smf.js?alph21"></script> |
|
|
|
|
|
<script src="https://forum.arduino.cc/Themes/default/scripts/topic.js?alph21"></script> |
|
|
|
|
|
<script><!-- // --><![CDATA[
|
|
|
|
|
|
var smf_smileys_url = 'https://forum.arduino.cc/Smileys/arduino'; |
|
|
|
|
|
var bbc_quote_from = 'Quote from'; |
|
|
|
|
|
var bbc_quote = 'Quote'; |
|
|
|
|
|
var bbc_search_on = 'on'; |
|
|
|
|
|
// ]]></script>
|
|
|
|
|
|
<meta name="description" content="Arduino Nano - A6/A7 internal pull-up resistors"> |
|
|
|
|
|
<title>Arduino Nano - A6/A7 internal pull-up resistors</title> |
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
|
|
|
|
<meta name="theme-color" content="#557EA0"> |
|
|
|
|
|
<link rel="canonical" href="https://forum.arduino.cc/index.php?topic=123176.0"> |
|
|
|
|
|
<link rel="help" href="https://forum.arduino.cc/index.php?action=help"> |
|
|
|
|
|
<link rel="contents" href="https://forum.arduino.cc/index.php"> |
|
|
|
|
|
<link rel="search" href="https://forum.arduino.cc/index.php?action=search"> |
|
|
|
|
|
<link rel="alternate" type="application/rss+xml" title="Arduino Forum - RSS" href="https://forum.arduino.cc/index.php?type=rss2;action=.xml"> |
|
|
|
|
|
<link rel="alternate" type="application/rss+xml" title="Arduino Forum - Atom" href="https://forum.arduino.cc/index.php?type=atom;action=.xml"> |
|
|
|
|
|
<link rel="index" href="https://forum.arduino.cc/index.php?board=67.0"> |
|
|
|
|
|
</head> |
|
|
|
|
|
<body id="smf" class="action_messageindex board_67"><link rel="stylesheet" href="//content.arduino.cc/legacy/css/foundation2.css" type="text/css"><link rel="stylesheet" href="https://forum.arduino.cc/Themes/default/css/common-hacked.css" type="text/css"><link rel="stylesheet" href="//content.arduino.cc/legacy/new_home/css/new_style.css" type="text/css"><link rel="stylesheet" href="//content.arduino.cc/legacy/fonts/fonts.css" type="text/css"><link rel="stylesheet" href="//content.arduino.cc/legacy/css/arduino-icons.css" type="text/css"><div id="header" class="temporary"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="navigate_section" id="headerbread"> |
|
|
|
|
|
<div class="row" style="max-width: 960px!important;"> |
|
|
|
|
|
<div class="small-12"> |
|
|
|
|
|
<ul> |
|
|
|
|
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php"><span>Arduino Forum</span></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<span class="dividers"> > </span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php#c2"><span>Using Arduino</span></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<span class="dividers"> > </span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?board=67.0"><span>Microcontrollers</span></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="last"> |
|
|
|
|
|
<span class="dividers"> > </span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.0"><span>Arduino Nano - A6/A7 internal pull-up resistors</span></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="row collapse"> |
|
|
|
|
|
<div class="small-12 columns"> |
|
|
|
|
|
<div id="wrapper"> |
|
|
|
|
|
<div id="upper_section"> |
|
|
|
|
|
<div id="inner_section"> |
|
|
|
|
|
<div id="main_menu"> |
|
|
|
|
|
<ul class="dropmenu" id="menu_nav"> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="content_section"> |
|
|
|
|
|
<div id="main_content_section"> |
|
|
|
|
|
|
|
|
|
|
|
<a id="msg926196"></a> |
|
|
|
|
|
<div class="pagesection top"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="buttonlist floatright"> |
|
|
|
|
|
|
|
|
|
|
|
<a class="button-forum button_strip_print" href="https://forum.arduino.cc/index.php?action=printpage;topic=123176.0" rel="nofollow">Print</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
<a href="#bot" class="topbottom floatleft">Go Down</a> |
|
|
|
|
|
<div class="pagelinks floatleft"> |
|
|
|
|
|
<span class="pages">Pages: </span><span class="current_page">[1]</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="forumposts"> |
|
|
|
|
|
<div class="cat_bar"> |
|
|
|
|
|
<h3 class="catbg"> |
|
|
|
|
|
<span id="top_subject" class="topic-icon topic-icon-">Topic: Arduino Nano - A6/A7 internal pull-up resistors <span>(Read 42291 times)</span></span> |
|
|
|
|
|
<span class="nextlinks floatright"><a href="https://forum.arduino.cc/index.php?topic=123176.0;prev_next=prev#new">previous topic</a> - <a href="https://forum.arduino.cc/index.php?topic=123176.0;prev_next=next#new">next topic</a></span> |
|
|
|
|
|
</h3> |
|
|
|
|
|
</div> |
|
|
|
|
|
<form action="https://forum.arduino.cc/index.php?action=quickmod2;topic=123176.0" method="post" accept-charset="UTF-8" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return oQuickModify.bInEditMode ? oQuickModify.modifySave('df02d161f4996114f7660f860e48f2fe', 'f185f8635') : false"> |
|
|
|
|
|
<div class="windowbg"> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=69796" title="View the profile of dadaumpa" class="pm_icon">dadaumpa</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=69796"><img class="avatar" src="http://static.arduino.cc/avatars/dadaumpa.jpg" alt="avatar_dadaumpa" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Newbie</li> |
|
|
|
|
|
<li class="postcount">Posts: 4</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://oscillatewildly.altervista.org/" title="oscillate wildly" target="_blank" class="new_win"><span class="generic_icons www centericon" title="oscillate wildly"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 0 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=69796;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="link-profile"><a href="http://oscillatewildly.altervista.org/">oscillate wildly</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_926196" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926196#msg926196" rel="nofollow">Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg926196#msg926196" rel="nofollow" title=" - Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Sep 17, 2012, 03:07 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_926196"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_926196_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_926196">Hello,<br /><br />this is not mentioned anywhere in the documentation as far as I can see.<br /><br />The question is: do the 2 extra analog pins (A6 and A7), which are found on the Arduino Nano and similar boards, have internal pull-ups?<br /><br />I had a look at the ATmega datasheet, and it makes no mention of pull-ups for the two corresponding pins (ADC6 and ADC7, cfr. paragraph 1.1.9). It explicitly says, however, regarding the other pins (cfr. paragraphs 1.1.3, 1.1.4, 1.1.6) that they are "bi-directional I/O port with internal pull-up resistors". <br /><br />So my guess is that there are no internal pull-up resistors for ADC6 and ADC7. Google also reports this explicitly mentioned on some AVR forum (http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=89804&start=0).<br /><br />Is this true? Otherwise I must conclude that my board is faulty :-)<br /><br />If this is the case, BTW, it would be nice to add this information on the Arduino Nano page, in order to spare some possible headache to other hobbists...<br /><br />Some background and context: I'm using the analog pins to read an array of buttons, similar to what described here: http://arduino.cc/forum/index.php/topic,20125.0.html.<br /><br />To keep the circuitry at a minimum, I turn on the internal pull-up by using:<br /><br /><div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code"> pinMode(A6, INPUT);<br /> digitalWrite(A6, HIGH);<br /></code><br /><br />The trick worked so far with A0 and A5, but it doesn't with A6. I'm getting wildly fluctuating readings with no buttons pressed, which suggests the internal pull-up is either broken or... simply non-existant :-)<br /><br />cheers,<br />Aldo<br /><br /><br /><br /></div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg2"> |
|
|
|
|
|
<a id="msg926207"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=10225" title="View the profile of cmiyc" class="pm_icon">cmiyc</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=10225"><img class="avatar" src="//dcw9y8se13llu.cloudfront.net/avatars/cmiyc.jpg" alt="avatar_cmiyc" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Tesla Member</li> |
|
|
|
|
|
<li class="postcount">Posts: 6,624</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://www.baldengineer.com" title="http://www.baldengineer.com" target="_blank" class="new_win"><span class="generic_icons www centericon" title="http://www.baldengineer.com"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 249 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=10225;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="blurb">Baldengineer</li> |
|
|
|
|
|
<li class="link-profile"><a href="http://www.baldengineer.com">http://www.baldengineer.com</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_926207" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926207#msg926207" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#1
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg926207#msg926207" rel="nofollow" title="Reply #1 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Sep 17, 2012, 03:20 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_926207"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_926207_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_926207">A6 and A7 are only inputs available to the mux in front of the ADC. There is no digital hardware behind the pins. <br /><br />Since the pull up is part of the digital latch, those two pins dont have pull ups (nor do they work as digital inputs.)<br /><br />Not that it is affecting your code, keep in mind that pinMode() has no effect on analog pins.</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
<div class="signature" id="msg_926207_signature">Capacitor Expert By Day, Enginerd by night. || Personal Blog: www.baldengineer.com || Electronics Tutorials for Beginners: www.addohms.com</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg"> |
|
|
|
|
|
<a id="msg926307"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=69796" title="View the profile of dadaumpa" class="pm_icon">dadaumpa</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=69796"><img class="avatar" src="http://static.arduino.cc/avatars/dadaumpa.jpg" alt="avatar_dadaumpa" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Newbie</li> |
|
|
|
|
|
<li class="postcount">Posts: 4</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://oscillatewildly.altervista.org/" title="oscillate wildly" target="_blank" class="new_win"><span class="generic_icons www centericon" title="oscillate wildly"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 0 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=69796;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="link-profile"><a href="http://oscillatewildly.altervista.org/">oscillate wildly</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_926307" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926307#msg926307" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#2
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg926307#msg926307" rel="nofollow" title="Reply #2 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Sep 17, 2012, 05:04 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_926307"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_926307_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_926307">Thanks for the explanation. Makes sense, just wasn't so obvious for a newbie like me :-)<br /><br />Regarding pinMode(), that's curious. You mean it has no effect on A6/A7 because of their analog, input-only nature? <br /><br />Because the page http://arduino.cc/en/Tutorial/AnalogInputPins actually uses pinMode() on an analog pin. Ok, that's obviously to set it as OUTPUT. INPUT should be redundant, since they are input by default. But I thought it was a good measure to set them to INPUT, just in case some code previously had set them in OUTPUT mode...<br /><br />cheers,<br />Aldo<br /></div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg2"> |
|
|
|
|
|
<a id="msg926462"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=59498" title="View the profile of Steph" class="pm_icon">Steph</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=59498"><img class="avatar" src="http://static.arduino.cc/avatars/Steph.jpg" alt="avatar_Steph" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Jr. Member</li> |
|
|
|
|
|
<li class="postcount">Posts: 81</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://planetstephanie.net/" title="Planet Stephanie" target="_blank" class="new_win"><span class="generic_icons www centericon" title="Planet Stephanie"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 3 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=59498;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="blurb">Frequently Befuddled</li> |
|
|
|
|
|
<li class="link-profile"><a href="http://planetstephanie.net/">Planet Stephanie</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_926462" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926462#msg926462" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#3
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg926462#msg926462" rel="nofollow" title="Reply #3 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Sep 17, 2012, 07:40 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_926462"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_926462_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_926462"><div class="quoteheader"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926307#msg926307">Quote from: dadaumpa on Sep 17, 2012, 05:04 pm</a></div><blockquote class="bbc_standard_quote">Regarding pinMode(), that's curious. You mean it has no effect on A6/A7 because of their analog, input-only nature? <br /><br />Because the page http://arduino.cc/en/Tutorial/AnalogInputPins actually uses pinMode() on an analog pin. Ok, that's obviously to set it as OUTPUT. INPUT should be redundant, since they are input by default. But I thought it was a good measure to set them to INPUT, just in case some code previously had set them in OUTPUT mode...</blockquote><div class="quotefooter"></div><br /><br />The first six analog pins do have digital circuitry behind them, so pinMode and digitalWrite work just fine. It's just pins A6 and A7 on the surface mount '328 which are analog-only.<br /><br />Cheers!<br /></div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg"> |
|
|
|
|
|
<a id="msg926727"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=10225" title="View the profile of cmiyc" class="pm_icon">cmiyc</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=10225"><img class="avatar" src="//dcw9y8se13llu.cloudfront.net/avatars/cmiyc.jpg" alt="avatar_cmiyc" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Tesla Member</li> |
|
|
|
|
|
<li class="postcount">Posts: 6,624</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://www.baldengineer.com" title="http://www.baldengineer.com" target="_blank" class="new_win"><span class="generic_icons www centericon" title="http://www.baldengineer.com"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 249 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=10225;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="blurb">Baldengineer</li> |
|
|
|
|
|
<li class="link-profile"><a href="http://www.baldengineer.com">http://www.baldengineer.com</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_926727" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926727#msg926727" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#4
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg926727#msg926727" rel="nofollow" title="Reply #4 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Sep 18, 2012, 12:11 am</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_926727"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_926727_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_926727"><div class="quoteheader"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926307#msg926307">Quote from: dadaumpa on Sep 17, 2012, 05:04 pm</a></div><blockquote class="bbc_standard_quote"><br />Regarding pinMode(), that's curious. You mean it has no effect on A6/A7 because of their analog, input-only nature? </blockquote><div class="quotefooter"></div><br />pinMode() has no effect on <em>analog</em> inputs (A0-A7).<br /><br />When analogRead() is called, the pin switches to an analog input regardless of what the pinMode was set as.<br /><br /><div class="quoteheader"><a href="https://forum.arduino.cc/index.php?topic=123176.msg926307#msg926307">Quote from: dadaumpa on Sep 17, 2012, 05:04 pm</a></div><blockquote class="bbc_standard_quote"><br />Because the page http://arduino.cc/en/Tutorial/AnalogInputPins actually uses pinMode() on an analog pin.</blockquote><div class="quotefooter"></div><br />Yes, because the code in that example is showing how to use the analog pin into a <em>digital</em> pin.</div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
<div class="signature" id="msg_926727_signature">Capacitor Expert By Day, Enginerd by night. || Personal Blog: www.baldengineer.com || Electronics Tutorials for Beginners: www.addohms.com</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg2"> |
|
|
|
|
|
<a id="msg1586523"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=22713" title="View the profile of 32teeth" class="pm_icon">32teeth</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=22713"><img class="avatar" src="http://static.arduino.cc/avatars/32teeth.jpg" alt="avatar_32teeth" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Full Member</li> |
|
|
|
|
|
<li class="postcount">Posts: 100</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="http://moledcule.club" title="http://moledcule.club" target="_blank" class="new_win"><span class="generic_icons www centericon" title="http://moledcule.club"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 4 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=22713;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="link-profile"><a href="http://moledcule.club">http://moledcule.club</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_1586523" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg1586523#msg1586523" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#5
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg1586523#msg1586523" rel="nofollow" title="Reply #5 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Feb 11, 2014, 04:43 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_1586523"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_1586523_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_1586523">You can actually use A6 and A7 as 'digital' pins with a little bit of logic in your code<br />below is my craptastic ]<img src="https://forum.arduino.cc/Smileys/arduino/cheesy.gif" alt=":D" title="Cheesy" class="smiley"> example<br /><br /><div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code">int pinStateA6 = 0;<br />int pinStateA7 = 0;<br /><br />void setup()<br />{<br />}<br /><br />void loop()<br />{<br /> pinStateA6 = analogRead(A6) > 100 ? 0 : 1;<br /> pinStateA7 = analogRead(A7) > 100 ? 0 : 1;<br />}</code></div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg"> |
|
|
|
|
|
<a id="msg2341865"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=396178" title="View the profile of tentoes" class="pm_icon">tentoes</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=396178"><img class="avatar" src="//dcw9y8se13llu.cloudfront.net/avatars/default.png" alt="avatar_tentoes" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/star.gif" alt="*"></li> |
|
|
|
|
|
<li class="postgroup">Newbie</li> |
|
|
|
|
|
<li class="postcount">Posts: 1</li> |
|
|
|
|
|
<li class="custom karma">Karma: 0 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=396178;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_2341865" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg2341865#msg2341865" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#6
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg2341865#msg2341865" rel="nofollow" title="Reply #6 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Aug 03, 2015, 05:37 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_2341865"></span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_2341865_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_2341865">pinMode can be used on A0-A5 to turn the internal pull-up resistor on or off.<br><br> pinMode(A0, INPUT_PULLUP); //on<br> pinMode(A0, INPUT); //off<br><br><br></div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
<div class="windowbg2"> |
|
|
|
|
|
<a id="msg2341961"></a> |
|
|
|
|
|
<div class="post_wrapper"> |
|
|
|
|
|
<div class="poster"> |
|
|
|
|
|
<h4> |
|
|
|
|
|
<span class="off" title="Offline"></span> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=266415" title="View the profile of DrAzzy" class="pm_icon">DrAzzy</a> |
|
|
|
|
|
</h4> |
|
|
|
|
|
<ul class="user_info"> |
|
|
|
|
|
<li class="avatar"> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?action=profile;u=266415"><img class="avatar" src="http://static.arduino.cc/avatars/DrAzzy.jpg" alt="avatar_DrAzzy" onerror="this.src='//dcw9y8se13llu.cloudfront.net/avatars/default.png';"></a> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="icons"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"><img src="https://forum.arduino.cc/Themes/default/images/membericons/stargold.gif" alt="*"></li> |
|
|
|
|
|
<li class="title">ATtiny Obsessee</li> |
|
|
|
|
|
<li class="postgroup">Shannon Member</li> |
|
|
|
|
|
<li class="postcount">Posts: 10,420</li> |
|
|
|
|
|
<li class="profile"> |
|
|
|
|
|
<ol class="profile_icons"> |
|
|
|
|
|
<li><a href="https://www.tindie.com/stores/DrAzzy/" title="https://www.tindie.com/stores/DrAzzy/" target="_blank" class="new_win"><span class="generic_icons www centericon" title="https://www.tindie.com/stores/DrAzzy/"></span></a></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="custom karma">Karma: 1524 <a href="https://forum.arduino.cc/index.php?action=karma;sa=applaud;uid=266415;f185f8635=df02d161f4996114f7660f860e48f2fe">[add]</a></li> |
|
|
|
|
|
<li class="link-profile"><a href="https://www.tindie.com/stores/DrAzzy/">https://www.tindie.com/stores/DrAzzy/</a></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="postarea"> |
|
|
|
|
|
<div class="keyinfo"> |
|
|
|
|
|
<div class="messageicon" style="position: absolute; z-index: -1;"> |
|
|
|
|
|
<img src="https://forum.arduino.cc/Themes/default/images/post/xx.png" alt=""> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="subject_2341961" class="subject_title"><a href="https://forum.arduino.cc/index.php?topic=123176.msg2341961#msg2341961" rel="nofollow">Re: Arduino Nano - A6/A7 internal pull-up resistors</a></div> |
|
|
|
|
|
<div class="page_number floatright"> |
|
|
|
|
|
#7
|
|
|
|
|
|
</div> |
|
|
|
|
|
<h5> |
|
|
|
|
|
<a href="https://forum.arduino.cc/index.php?topic=123176.msg2341961#msg2341961" rel="nofollow" title="Reply #7 - Re: Arduino Nano - A6/A7 internal pull-up resistors" class="smalltext">Aug 03, 2015, 07:03 pm</a> |
|
|
|
|
|
<span class="smalltext modified" id="modified_2341961"><span class="lastedit">Last Edit</span>: Aug 03, 2015, 07:08 pm by DrAzzy</span> |
|
|
|
|
|
</h5> |
|
|
|
|
|
<div id="msg_2341961_quick_mod"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="post"> |
|
|
|
|
|
<div class="inner" id="msg_2341961">Sigh....<br><br>Analog pins A0~A5 are normal pins. You can refer to them as pins 14-19 as well, and they can be used normally as digital pins. <br><br>Analog pins A6 and A7 are weird. They can *only* be used for analogRead() - there aren't any registers to write to for them like there are for other pins. I get the impression they were an afterthought (maybe the DIP package was released first, then they're like "hey we have some extra pins on TQFP32, let's connect them to the unused channels on the ADC mux")...<br><br>The next iteration of the x8 series (x8PB - only available up to 16k so far though) gives them proper treatment, putting them on a new port with those two pins, plus two pins that used to be a second set of power and ground pins, to make a 4 bit port. </div>
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="under_message"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="moderatorbar"> |
|
|
|
|
|
<div class="signature" id="msg_2341961_signature">ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:<br>http://drazzy.com/package_drazzy.com_index.json <br>ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr class="post_separator"> |
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="pagesection"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="buttonlist floatright"> |
|
|
|
|
|
|
|
|
|
|
|
<a class="button-forum button_strip_print" href="https://forum.arduino.cc/index.php?action=printpage;topic=123176.0" rel="nofollow">Print</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
<a href="#main_content_section" class="topbottom floatleft" id="bot">Go Up</a> |
|
|
|
|
|
<div class="pagelinks floatleft"> |
|
|
|
|
|
<span class="pages">Pages: </span><span class="current_page">[1]</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="moderationbuttons"> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="display_jump_to"> </div> |
|
|
|
|
|
<br class="clear"> |
|
|
|
|
|
<script><!-- // --><![CDATA[
|
|
|
|
|
|
var oQuickReply = new QuickReply({ |
|
|
|
|
|
bDefaultCollapsed: false, |
|
|
|
|
|
iTopicId: 123176, |
|
|
|
|
|
iStart: 0, |
|
|
|
|
|
sScriptUrl: smf_scripturl, |
|
|
|
|
|
sImagesUrl: smf_images_url, |
|
|
|
|
|
sContainerId: "quickReplyOptions", |
|
|
|
|
|
sImageId: "quickReplyExpand", |
|
|
|
|
|
sClassCollapsed: "toggle_up", |
|
|
|
|
|
sClassExpanded: "toggle_down", |
|
|
|
|
|
bIsFull: true |
|
|
|
|
|
}); |
|
|
|
|
|
if ('XMLHttpRequest' in window) |
|
|
|
|
|
{ |
|
|
|
|
|
var oQuickModify = new QuickModify({ |
|
|
|
|
|
sScriptUrl: smf_scripturl, |
|
|
|
|
|
sClassName: 'quick_edit', |
|
|
|
|
|
bShowModify: true, |
|
|
|
|
|
iTopicId: 123176, |
|
|
|
|
|
sTemplateBodyEdit: '\n\t\t\t\t\t\t\t\t<div id="quick_edit_body_container">\n\t\t\t\t\t\t\t\t\t<div id="error_box" class="error"><' + '/div>\n\t\t\t\t\t\t\t\t\t<textarea class="editor" name="message" rows="12" style="width: 100%; margin-bottom: 10px;" tabindex="1">%body%<' + '/textarea><br>\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="f185f8635" value="df02d161f4996114f7660f860e48f2fe">\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="topic" value="123176">\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%">\n\t\t\t\t\t\t\t\t\t<div class="righttext">\n\t\t\t\t\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'df02d161f4996114f7660f860e48f2fe\', \'f185f8635\');" accesskey="s" class="button_submit"> <input type="submit" name="cancel" value="Cancel" tabindex="3" onclick="return oQuickModify.modifyCancel();" class="button_submit">\n\t\t\t\t\t\t\t\t\t<' + '/div>\n\t\t\t\t\t\t\t\t<' + '/div>', |
|
|
|
|
|
sTemplateSubjectEdit: '<input type="text" name="subject" value="%subject%" size="80" maxlength="80" tabindex="4" class="input_text">', |
|
|
|
|
|
sTemplateBodyNormal: '%body%', |
|
|
|
|
|
sTemplateSubjectNormal: '<a hr'+'ef="' + smf_scripturl + '?topic=123176.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', |
|
|
|
|
|
sTemplateTopSubject: 'Topic: %subject% (Read 42291 times)', |
|
|
|
|
|
sTemplateReasonEdit: '<input type="text" name="modify_reason" value="%modify_reason%" size="80" maxlength="80" tabindex="5" class="input_text">)', |
|
|
|
|
|
sTemplateReasonNormal: '%modify_text', |
|
|
|
|
|
sErrorBorderStyle: '1px solid red' |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
aJumpTo[aJumpTo.length] = new JumpTo({ |
|
|
|
|
|
sContainerId: "display_jump_to", |
|
|
|
|
|
sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">Jump to:<" + "/label> %dropdown_list%", |
|
|
|
|
|
iCurBoardId: 67, |
|
|
|
|
|
iCurBoardChildLevel: 0, |
|
|
|
|
|
sCurBoardName: "Microcontrollers", |
|
|
|
|
|
sBoardChildLevelIndicator: "==", |
|
|
|
|
|
sBoardPrefix: "=> ", |
|
|
|
|
|
sCatSeparator: "-----------------------------", |
|
|
|
|
|
sCatPrefix: "", |
|
|
|
|
|
sGoButtonLabel: "Go" |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
aIconLists[aIconLists.length] = new IconList({ |
|
|
|
|
|
sBackReference: "aIconLists[" + aIconLists.length + "]", |
|
|
|
|
|
sIconIdPrefix: "msg_icon_", |
|
|
|
|
|
sScriptUrl: smf_scripturl, |
|
|
|
|
|
bShowModify: true, |
|
|
|
|
|
iBoardId: 67, |
|
|
|
|
|
iTopicId: 123176, |
|
|
|
|
|
sSessionId: smf_session_id, |
|
|
|
|
|
sSessionVar: smf_session_var, |
|
|
|
|
|
sLabelIconList: "Message icon", |
|
|
|
|
|
sBoxBackground: "transparent", |
|
|
|
|
|
sBoxBackgroundHover: "#ffffff", |
|
|
|
|
|
iBoxBorderWidthHover: 1, |
|
|
|
|
|
sBoxBorderColorHover: "#adadad" , |
|
|
|
|
|
sContainerBackground: "#ffffff", |
|
|
|
|
|
sContainerBorder: "1px solid #adadad", |
|
|
|
|
|
sItemBorder: "1px solid #ffffff", |
|
|
|
|
|
sItemBorderHover: "1px dotted gray", |
|
|
|
|
|
sItemBackground: "transparent", |
|
|
|
|
|
sItemBackgroundHover: "#e0e0f0" |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
// ]]></script>
|
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<br /><style>.pagefooter a { color: white !important; }</style> <!-- Global site tag (gtag.js) - Google Analytics --> |
|
|
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-22581631-3"></script> |
|
|
|
|
|
<script> |
|
|
|
|
|
window.dataLayer = window.dataLayer || []; |
|
|
|
|
|
function gtag(){dataLayer.push(arguments);} |
|
|
|
|
|
gtag('js', new Date()); |
|
|
|
|
|
|
|
|
|
|
|
gtag('config', 'UA-22581631-3'); |
|
|
|
|
|
</script> |
|
|
|
|
|
<div> |
|
|
|
|
|
<div id="newsletter-modal"></div> |
|
|
|
|
|
<div id="footer"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<script src="https://cdn.arduino.cc/header-footer/loader.js" type="text/javascript"></script> |
|
|
|
|
|
<script> |
|
|
|
|
|
var auth = { |
|
|
|
|
|
token: function() { |
|
|
|
|
|
return false ? Promise.resolve({ |
|
|
|
|
|
token: null }) : Promise.reject('loggedout') |
|
|
|
|
|
}, |
|
|
|
|
|
redirectURI: function() { |
|
|
|
|
|
return 'https://auth.arduino.cc/login?client_id=forum&redirect_uri=https%3A%2F%2Fforum.arduino.cc%2F&state=1211225011&scope=profile%3Acore+profile%3Apublic+profile%3Acontact+offline&response_type=code'; |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
ArduinoHeaderAndFooter({ |
|
|
|
|
|
auth: "custom", |
|
|
|
|
|
authOptions: auth |
|
|
|
|
|
}); |
|
|
|
|
|
</script> |
|
|
|
|
|
<div id="ajax_in_progress" style="display: none;">Loading...</div> |
|
|
|
|
|
<script><!-- // --><![CDATA[
|
|
|
|
|
|
function triggerCron() { |
|
|
|
|
|
var tempImage = new Image(); |
|
|
|
|
|
tempImage.src = 'https://forum.arduino.cc' + "/cron.php?ts=1559603865"; |
|
|
|
|
|
} |
|
|
|
|
|
window.setTimeout(triggerCron, 1); |
|
|
|
|
|
// ]]></script>
|
|
|
|
|
|
<script src="//content.arduino.cc/legacy/new_home/js/vendor/modernizr.js"></script> |
|
|
|
|
|
<!--[if gte IE 9]><!--> |
|
|
|
|
|
<script src="//content.arduino.cc/legacy/js/foundation.min.js"></script> |
|
|
|
|
|
<script> |
|
|
|
|
|
$(document).foundation(); |
|
|
|
|
|
</script> |
|
|
|
|
|
<!--<![endif]--> |
|
|
|
|
|
<!--[if IE 8]> |
|
|
|
|
|
<script src="//content.arduino.cc/legacy/js/foundation_ie8.min.js"></script> |
|
|
|
|
|
<script src="//content.arduino.cc/legacy/js/ie8/jquery.foundation.alerts.js"></script> |
|
|
|
|
|
<script src="//content.arduino.cc/legacy/js/app.js"></script> |
|
|
|
|
|
<![endif]--> |
|
|
|
|
|
<script> |
|
|
|
|
|
// Adv banner configuration
|
|
|
|
|
|
var arduinoAdvOptions = { |
|
|
|
|
|
breakpointDesktop: 480, |
|
|
|
|
|
breakpointMobile: 480, |
|
|
|
|
|
zoneIdDesktop: 561, |
|
|
|
|
|
zoneIdTablet: 560, |
|
|
|
|
|
zoneIdMobile: 560 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
jQuery('.boardindex_table .main_container:nth-child(1)').append('<div id="ad_container_zone" class="adv-banner"></div>'); |
|
|
|
|
|
jQuery('#forumposts form .windowbg:nth-of-type(1)').after('<div id="ad_container_zone" class="adv-banner"></div>'); |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
<!-- Script used by adv banner --> |
|
|
|
|
|
<script type="text/javascript" |
|
|
|
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.8/postscribe.min.js"></script> |
|
|
|
|
|
<script type="text/javascript" src="https://content.arduino.cc/banner/banner.js"></script> |
|
|
|
|
|
</body> |
|
|
|
|
|
</html> |