<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://mtc.if.ufrgs.br/index.php?action=history&amp;feed=atom&amp;title=Led_no_Arduino</id>
	<title>Led no Arduino - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://mtc.if.ufrgs.br/index.php?action=history&amp;feed=atom&amp;title=Led_no_Arduino"/>
	<link rel="alternate" type="text/html" href="https://mtc.if.ufrgs.br/index.php?title=Led_no_Arduino&amp;action=history"/>
	<updated>2026-04-28T14:17:31Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>https://mtc.if.ufrgs.br/index.php?title=Led_no_Arduino&amp;diff=199&amp;oldid=prev</id>
		<title>Kirch em 20h46min de 12 de janeiro de 2015</title>
		<link rel="alternate" type="text/html" href="https://mtc.if.ufrgs.br/index.php?title=Led_no_Arduino&amp;diff=199&amp;oldid=prev"/>
		<updated>2015-01-12T20:46:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 20h46min de 12 de janeiro de 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Linha 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make upload&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;make upload&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A Makefile está em ~/mysketches.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A Makefile está em ~/mysketches.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Referencia&lt;/del&gt;: http://www.deanmao.com/2012/08/10/uploading-sketches-to-the-arduino-on-the-pi/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Referência&lt;/ins&gt;: http://www.deanmao.com/2012/08/10/uploading-sketches-to-the-arduino-on-the-pi/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kirch</name></author>
	</entry>
	<entry>
		<id>https://mtc.if.ufrgs.br/index.php?title=Led_no_Arduino&amp;diff=198&amp;oldid=prev</id>
		<title>Kirch: Criou página com &#039;Definir as variáveis de ambiente necessárias:  &lt;nowiki&gt; export BOARD=uno export SERIALDEV=/dev/ttyACM0 export ARDUINO_PORT=/dev/ttyACM0 export ARDUINO_DIR=/usr/share/arduino...&#039;</title>
		<link rel="alternate" type="text/html" href="https://mtc.if.ufrgs.br/index.php?title=Led_no_Arduino&amp;diff=198&amp;oldid=prev"/>
		<updated>2015-01-12T20:45:52Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;Definir as variáveis de ambiente necessárias:  &amp;lt;nowiki&amp;gt; export BOARD=uno export SERIALDEV=/dev/ttyACM0 export ARDUINO_PORT=/dev/ttyACM0 export ARDUINO_DIR=/usr/share/arduino...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Definir as variáveis de ambiente necessárias:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export BOARD=uno&lt;br /&gt;
export SERIALDEV=/dev/ttyACM0&lt;br /&gt;
export ARDUINO_PORT=/dev/ttyACM0&lt;br /&gt;
export ARDUINO_DIR=/usr/share/arduino&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compilar e enviar para o arduino como root usando:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
make clean&lt;br /&gt;
make upload&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A Makefile está em ~/mysketches. &lt;br /&gt;
Referencia: http://www.deanmao.com/2012/08/10/uploading-sketches-to-the-arduino-on-the-pi/&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
int ledPin =  12;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  pinMode(ledPin, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int valor_recebido;&lt;br /&gt;
  valor_recebido = Serial.read();&lt;br /&gt;
&lt;br /&gt;
  if(valor_recebido == &amp;#039;1&amp;#039;)&lt;br /&gt;
      {&lt;br /&gt;
      digitalWrite(ledPin, HIGH);&lt;br /&gt;
      Serial.println(&amp;quot;O led conectado ao pino 12 foi ligado!&amp;quot;);&lt;br /&gt;
      }&lt;br /&gt;
  if(valor_recebido == &amp;#039;2&amp;#039;)&lt;br /&gt;
      {&lt;br /&gt;
      digitalWrite(ledPin, LOW);&lt;br /&gt;
      Serial.println(&amp;quot;O led conectado ao pino 12 foi desligado!&amp;quot;);&lt;br /&gt;
      }&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirch</name></author>
	</entry>
</feed>