<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3885996089176338758</id><updated>2026-09-06T22:26:36.256-07:00</updated><category term="PROGRAMACION"/><category term="MICROCONTROLADORES"/><category term="arduino"/><category term="SOFTWARE"/><category term="Quadcopter"/><category term="TUTORIAL PIC MPLAB C"/><category term="TUTORIALES"/><category term="Comic"/><category term="INDICE"/><category term="Laptops"/><category term="cnc"/><title type='text'>Progra, Mecatronica y mas</title><subtitle type='html'>FIME UANL Mexico&#xa;&#xa;Aprende Bonito ....!!!!! =)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>82</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4168043315571395607</id><published>2020-07-21T09:48:00.000-07:00</published><updated>2013-12-10T23:09:55.496-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INDICE"/><title type='text'>INDICE DE ENTRADAS</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4168043315571395607/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2011/07/indice-de-entradas.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4168043315571395607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4168043315571395607'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2011/07/indice-de-entradas.html' title='INDICE DE ENTRADAS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-6325774935268283221</id><published>2016-09-30T13:18:00.004-07:00</published><updated>2016-09-30T13:18:47.590-07:00</updated><title type='text'>IntelliJ 14 KeyGen</title><content type='html'>I don&#39;t like to post KeyGen in this blog or any sort or crack but the code for the keygen is pure Java and it&#39;s very educative.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;&amp;lt;No me agrada publicar&amp;nbsp;KeyGen&#39;s o cracks de ningún tipo, pero ya que el código es Java simple y es sumamente educativo, lo haré aquí.&lt;br /&gt;
&lt;br /&gt;
So, the KeyGen for IntelliJ 14 Ultimate is:&lt;br /&gt;
El KeyGen para IntelliJ 14 Ultimate es:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Archivo &lt;b&gt;keygen.java&lt;/b&gt;:&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: css&quot;&gt;import java.math.BigInteger;
import java.util.Date;
import java.util.Random;
import java.util.zip.CRC32;

public class keygen
{
/**
* @param s
* @param i
* @param bytes
* @return
*/
public static short getCRC(String s, int i, byte bytes[])
{
CRC32 crc32 = new CRC32();
if (s != null)
{
for (int j = 0; j &amp;lt; s.length(); j++)
{
char c = s.charAt(j);
crc32.update(c);
}
}
crc32.update(i);
crc32.update(i &amp;gt;&amp;gt; 8);
crc32.update(i &amp;gt;&amp;gt; 16);
crc32.update(i &amp;gt;&amp;gt; 24);
for (int k = 0; k &amp;lt; bytes.length - 2; k++)
{
byte byte0 = bytes[k];
crc32.update(byte0);
}
return (short) (int) crc32.getValue();
}

/**
* @param biginteger
* @return String
*/
public static String encodeGroups(BigInteger biginteger)
{
BigInteger beginner1 = BigInteger.valueOf(0x39aa400L);
StringBuilder sb = new StringBuilder();
for (int i = 0; biginteger.compareTo(BigInteger.ZERO) != 0; i++)
{
int j = biginteger.mod(beginner1).intValue();
String s1 = encodeGroup(j);
if (i &amp;gt; 0)
{
sb.append(&quot;-&quot;);
}
sb.append(s1);
biginteger = biginteger.divide(beginner1);
}
return sb.toString();
}

/**
* @param i
* @return
*/
public static String encodeGroup(int i)
{
StringBuilder sb = new StringBuilder();
for (int j = 0; j &amp;lt; 5; j++)
{
int k = i % 36;
char c;
if (k &amp;lt; 10)
{
c = (char) (48 + k);
}
else
{
c = (char) ((65 + k) - 10);
}
sb.append(c);
i /= 36;
}
return sb.toString();
}

/**
* @param name
* @param days
* @param id
* @param prtype
* @return
*/
public static String MakeKey(String name, int days, int id)
{
id %= 100000;
byte bkey[] = new byte[12];
bkey[0] = (byte) 1; // Product type: IntelliJ IDEA is 1
bkey[1] = 14; // version
Date d = new Date();
long ld = (d.getTime() &amp;gt;&amp;gt; 16);
bkey[2] = (byte) (ld &amp;amp; 255);
bkey[3] = (byte) ((ld &amp;gt;&amp;gt; 8) &amp;amp; 255);
bkey[4] = (byte) ((ld &amp;gt;&amp;gt; 16) &amp;amp; 255);
bkey[5] = (byte) ((ld &amp;gt;&amp;gt; 24) &amp;amp; 255);
days &amp;amp;= 0xffff;
bkey[6] = (byte) (days &amp;amp; 255);
bkey[7] = (byte) ((days &amp;gt;&amp;gt; 8) &amp;amp; 255);
bkey[8] = 105;
bkey[9] = -59;
bkey[10] = 0;
bkey[11] = 0;
int w = getCRC(name, id % 100000, bkey);
bkey[10] = (byte) (w &amp;amp; 255);
bkey[11] = (byte) ((w &amp;gt;&amp;gt; 8) &amp;amp; 255);
BigInteger pow = new BigInteger(&quot;89126272330128007543578052027888001981&quot;, 10);
BigInteger mod = new BigInteger(&quot;86f71688cdd2612ca117d1f54bdae029&quot;, 16);
BigInteger k0 = new BigInteger(bkey);
BigInteger k1 = k0.modPow(pow, mod);
String s0 = Integer.toString(id);
String sz = &quot;0&quot;;
while (s0.length() != 5)
{
s0 = sz.concat(s0);
}
s0 = s0.concat(&quot;-&quot;);
String s1 = encodeGroups(k1);
s0 = s0.concat(s1);
return s0;
}

public static void main(String[] args)
{
if (args.length == 0)
{
System.err.printf(&quot;*** Usage: %s name%n&quot;, keygen.class.getCanonicalName());
System.exit(1);
}
Random r = new Random();
System.out.println(MakeKey(args[0], 0, r.nextInt(100000)));
}
}
&lt;/pre&gt;
&lt;br /&gt;
If you want to get your Key for IntelliJ14 Ultimate do the following:&lt;br /&gt;
&amp;gt;&amp;gt;Si deseas obtener tu clave para IntelliJ 14 Ultimate haz lo siguiente:&lt;br /&gt;
&lt;br /&gt;
Instructions:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Create a folder in your desktop (or somewhere)&lt;/li&gt;
&lt;li&gt;Create a text file inside that folder with the name: &lt;i&gt;keygen.java&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;Copy and paste the code above in the text file, save and exit&lt;/li&gt;
&lt;li&gt;Open a terminal and go to that folder&lt;/li&gt;
&lt;li&gt;Compile the file:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;$ javac keygen.java&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Execute the progam&amp;nbsp;using the username you want:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;$ java keygen yourusername&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Enjoy.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
Instrucciones:&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Crea un folder en tu escritorio (o donde sea)&lt;/li&gt;
&lt;li&gt;Crea un simple archivo de texto dentro de ese folder y llámalo: &lt;i&gt;keygen.java&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;Copia y pega el código Java de arriba en el archivo, guardalo y cierra&lt;/li&gt;
&lt;li&gt;Abre una terminal y navega hasta dicho folder&lt;/li&gt;
&lt;li&gt;Compila el programa java:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;$ javac keygen.java&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Ejecuta el programa usando el nombre de usuario que deseas:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;$ java keygen yourusername&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Disfruta.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Example:&lt;/div&gt;
&lt;div&gt;
&amp;gt;&amp;gt; Ejemplo:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTVbwHobmbMW0bhrq-ZRuVZfHTIBxoxQT2h-c0mJmqPh4Slg_tacjhoiqs2IvcrTxyVtKfljAtJWyc0XqmKDKolwXXIglyOQr2SCjp1fQDpV8BRGUBQeCGlSHih309ezAwRAcMtHrS0-iD/s1600/IntelliJ14-KeyGen.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTVbwHobmbMW0bhrq-ZRuVZfHTIBxoxQT2h-c0mJmqPh4Slg_tacjhoiqs2IvcrTxyVtKfljAtJWyc0XqmKDKolwXXIglyOQr2SCjp1fQDpV8BRGUBQeCGlSHih309ezAwRAcMtHrS0-iD/s640/IntelliJ14-KeyGen.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/6325774935268283221/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2016/09/intellij-14-keygen.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6325774935268283221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6325774935268283221'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2016/09/intellij-14-keygen.html' title='IntelliJ 14 KeyGen'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTVbwHobmbMW0bhrq-ZRuVZfHTIBxoxQT2h-c0mJmqPh4Slg_tacjhoiqs2IvcrTxyVtKfljAtJWyc0XqmKDKolwXXIglyOQr2SCjp1fQDpV8BRGUBQeCGlSHih309ezAwRAcMtHrS0-iD/s72-c/IntelliJ14-KeyGen.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4723504801738190415</id><published>2015-04-27T07:01:00.005-07:00</published><updated>2015-04-27T07:08:20.159-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Laptops"/><category scheme="http://www.blogger.com/atom/ns#" term="TUTORIALES"/><title type='text'>Dell xps m1330 - No enciende y la luz el cargador se apaga</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Troubleshooting Dell xps m1330.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;No Power, Charger light turns off.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para esta&amp;nbsp;ocasión les traigo el problema de un amigo, su&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Dell xps m1330, la cual coloco a&amp;nbsp;continuación ya no encendia, se apago un&amp;nbsp;día&amp;nbsp;mientras estaba trabajando y ya no quiso encender.&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZx-EqR5yD81yNEj-CvLZOH_7iUK2Cs_GRBkPZS2nJtfkBaxRsyl5mdGqqCYvidh3kzPE4srysBHJP83BtjjsTh7hpRt3hpvAtxNeZQSl-iM4Hj7J6LaM1iq6XnIXvwuHIiaFU9culWMH_/s1600/Dell-xps-m1330-power-failure+(1).jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZx-EqR5yD81yNEj-CvLZOH_7iUK2Cs_GRBkPZS2nJtfkBaxRsyl5mdGqqCYvidh3kzPE4srysBHJP83BtjjsTh7hpRt3hpvAtxNeZQSl-iM4Hj7J6LaM1iq6XnIXvwuHIiaFU9culWMH_/s1600/Dell-xps-m1330-power-failure+(1).jpg&quot; height=&quot;270&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Dell xps m1330 - Después de reparada&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
La falla se&amp;nbsp;debió&amp;nbsp;a que un capacitor interno entro en corto circuito causando que el circuito de&amp;nbsp;alimentación&amp;nbsp;que va a la&amp;nbsp;batería&amp;nbsp;quedara sin voltaje y a vez toda la tarjeta madre.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
El dichoso &lt;b&gt;capacitor&lt;/b&gt; era el &lt;b&gt;C10 &lt;/b&gt;que esta en la parte superior de la tarjeta madre justo a un lado del conector a la&amp;nbsp;batería y por debajo de la parte superior del teclado.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;PROBLEMA&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si tu laptop DELL sufre de los siguiente&amp;nbsp;síntomas&amp;nbsp;lo mas seguro es que esta sea la causa:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No enciende. (Nada, ni una luz)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Al momento de conectar el cargador este se apaga (a primera vista pareciera que el cargador es el problema).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La&amp;nbsp;información&amp;nbsp;acerca del problema fue encontrada en los siguientes sitios:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://forum.notebookreview.com/threads/m1330-no-power-led-on-ac-supplier-off-fixing-report.566575/&quot;&gt;http://forum.notebookreview.com/threads/m1330-no-power-led-on-ac-supplier-off-fixing-report.566575/&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://forum.notebookreview.com/threads/xps-m1330-wont-turn-on-motherboard-or-gpu-failure.297570/page-3#post6641913&quot;&gt;http://forum.notebookreview.com/threads/xps-m1330-wont-turn-on-motherboard-or-gpu-failure.297570/page-3#post6641913&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SOLUCIÓN&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Desoldar dicho capacitor&lt;/b&gt; (&lt;b&gt;C10&lt;/b&gt;), el cual no sirve para nada,&amp;nbsp;así&amp;nbsp;es, su&amp;nbsp;única&amp;nbsp;función&amp;nbsp;es echar a perder la laptop completa. Una vez desoldado pueden conectar la laptop de nuevo y&amp;nbsp;verán&amp;nbsp;como enciende como nueva.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;NOTA:&lt;/b&gt; Es posible que sirva para algo pero al no tener el&amp;nbsp;esquemático&amp;nbsp;de la tarjeta madre es&amp;nbsp;difícil&amp;nbsp;saber, lo mas seguro es que solo sea para estabilizar voltaje.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;IMÁGENES&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Aquí&amp;nbsp;unas&amp;nbsp;imágenes&amp;nbsp;que espero les sirvan de&amp;nbsp;guía.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_l4exVISSi0yGOkLIIDk_nx1kYbcOrZxtMbG_GDZ9EkXVTm-hpO4qG0CT10brfvvc5yrPTT8CNwKpkshUREdlm0wlGko8uzuib6ylaFjtXAvFtLqWPBwP5e-FgjR5CXeNTsjei_-6GTzO/s1600/Dell-xps-m1330-power-failure+(6).jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_l4exVISSi0yGOkLIIDk_nx1kYbcOrZxtMbG_GDZ9EkXVTm-hpO4qG0CT10brfvvc5yrPTT8CNwKpkshUREdlm0wlGko8uzuib6ylaFjtXAvFtLqWPBwP5e-FgjR5CXeNTsjei_-6GTzO/s1600/Dell-xps-m1330-power-failure+(6).jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Dell xps m1330 desarmada. El cuadro rojo muestra la ubicación del capacitor &lt;b&gt;C10&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDQhD_B5B7V9iUvOBvLfypTBOscVgSQCNJvPMpW9BGnRvrQWeqXoe2JssHGh37c1IwD7tOtOWANEULncfxTiac0rdDbkD4V7oqMvJX0UfdD6jKFzvUyl5v3T9NC0PbWYp9LQQamGFnm__g/s1600/Dell-xps-m1330-power-failure+(5).jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDQhD_B5B7V9iUvOBvLfypTBOscVgSQCNJvPMpW9BGnRvrQWeqXoe2JssHGh37c1IwD7tOtOWANEULncfxTiac0rdDbkD4V7oqMvJX0UfdD6jKFzvUyl5v3T9NC0PbWYp9LQQamGFnm__g/s1600/Dell-xps-m1330-power-failure+(5).jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ubicación exacta del capacitor &lt;b&gt;C10&lt;/b&gt;.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidAzRHZUhy_7WmavbvUn3eSIp7uFcTTEfPFJrK6Zw-8yfort9jX1HhrOnEiAmGC7hSVYTBQ-KCtsXPGsyPkTqYd0ReUebEh82lWeabBJCQBSSHfOi8-cVFZ-szSJz9eXwxKypVAHyHXLj3/s1600/Dell-xps-m1330-power-failure+(7).jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidAzRHZUhy_7WmavbvUn3eSIp7uFcTTEfPFJrK6Zw-8yfort9jX1HhrOnEiAmGC7hSVYTBQ-KCtsXPGsyPkTqYd0ReUebEh82lWeabBJCQBSSHfOi8-cVFZ-szSJz9eXwxKypVAHyHXLj3/s1600/Dell-xps-m1330-power-failure+(7).jpg&quot; height=&quot;240&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Capacitor &lt;b&gt;C10&lt;/b&gt; removido. Ahora ya todo debe funcionar bien.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4723504801738190415/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2015/04/dell-xps-m1330-no-enciende.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4723504801738190415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4723504801738190415'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2015/04/dell-xps-m1330-no-enciende.html' title='Dell xps m1330 - No enciende y la luz el cargador se apaga'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZx-EqR5yD81yNEj-CvLZOH_7iUK2Cs_GRBkPZS2nJtfkBaxRsyl5mdGqqCYvidh3kzPE4srysBHJP83BtjjsTh7hpRt3hpvAtxNeZQSl-iM4Hj7J6LaM1iq6XnIXvwuHIiaFU9culWMH_/s72-c/Dell-xps-m1330-power-failure+(1).jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-3945576117232787938</id><published>2015-04-17T19:58:00.000-07:00</published><updated>2015-04-18T11:14:52.450-07:00</updated><title type='text'>Cálculo del Sueldo Bruto e ISR a partir del Sueldo Neto - México</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si eres contador o la persona encargada de Nóminas esto sin duda te interesa.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Cuantas veces has querido obtener el sueldo bruto e ISR del salario si solo tienes el sueldo neto a pagar a tus trabajadores?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Sonará extraño pero así es, si tu empresa es de esas que paga por proyectos, normalmente la empresa promete X cantidad de dinero como remuneración por los servicios, digamos $15,000MXN, pero un momento, eso es lo que le prometiste al contratista del proyecto que le vas a pagar, y como demonios calculas el ISR a declarar ante hacienda?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esta calculadora por el momento solo permite hacer el cálculo basado en un sueldo &lt;b&gt;mensual&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Utiliza esta aplicación WEB que coloco aquí mismo, fue desarrollada como proyecto final para de mis materias en la &lt;b&gt;UANL, FIME. México. Si experimenta problemas usando Iinternet Ecxplorer por favor pruebe en Chrome.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;500&quot; scrolling=&quot;auto&quot; src=&quot;http://buenosmecanicos.com/haza-varios/calculaSueldoBruto_blog.html&quot; width=&quot;500&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
--------------------------------------------------------------------------------------------------------------------------
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Las tablas usadas como fuente de datos fueron:&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; border: 0px none; box-sizing: border-box; color: #333333; font-family: &#39;Droid Sans&#39;, Arial, Verdana, sans-serif; font-size: 13px; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: red; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Tarifa mensual del ISR&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;(DOF 5 de enero de 2015)&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: #f2f2f2; border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #333333; font-family: &#39;Droid Sans&#39;, Arial, Verdana, sans-serif; font-size: 13px; list-style: none; margin: 0px 0px 1.5em; outline: none; padding: 0px; width: 581px;&quot;&gt;&lt;tbody style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Límite&lt;br style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot; /&gt;inferior&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Límite&amp;nbsp;&lt;br style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot; /&gt;superior&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Cuota&lt;br style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot; /&gt;fija&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Por ciento para aplicarse sobre&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;el excedente del límite inferior&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;%&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;0.01&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;496.07&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;0.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;1.92&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;496.08&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,210.41&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;9.52&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;6.40&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,210.42&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,399.42&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;247.24&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;10.88&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,399.43&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;8,601.50&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;594.21&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;16.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;8,601.51&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;10,298.35&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;786.54&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;17.92&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;10,298.36&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;20,770.29&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;1,090.61&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;21.36&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;20,770.30&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;32,736.83&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;3,327.42&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;23.52&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;32,736.84&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;62,500.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;6,141.95&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;30.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;62,500.01&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;83,333.33&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;15,070.90&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;32.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;83,333.34&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;250,000.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;21,737.57&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;34.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;123&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;250,000.01&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;131&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;En adelante&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;125&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;78,404.23&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;202&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;35.00&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; border: 0px none; box-sizing: border-box; color: #333333; font-family: &#39;Droid Sans&#39;, Arial, Verdana, sans-serif; font-size: 13px; list-style: none; margin-bottom: 14px; margin-top: 14px; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: red; font-size: 10.5pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Tabla del subsidio para el empleo&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: #f2f2f2; border-collapse: collapse; border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; color: #333333; font-family: &#39;Droid Sans&#39;, Arial, Verdana, sans-serif; font-size: 13px; list-style: none; margin: 0px 0px 1.5em; outline: none; padding: 0px; width: 583px;&quot;&gt;&lt;tbody style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td colspan=&quot;3&quot; style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;583&quot;&gt;&lt;div style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Monto de ingresos que sirven de base para calcular el impuesto&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Para Ingresos de&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Hasta Ingresos de&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;Cantidad de subsidio para el empleo mensual&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;center&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;$&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;0.01&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;1,768.96&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;407.02&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;1,768.97&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;2,653.38&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;406.83&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;2,653.39&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;3,472.84&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;406.62&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;3,472.85&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;3,537.87&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;392.77&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;3,537.88&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,446.15&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;382.46&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,446.16&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,717.18&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;354.23&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;4,717.19&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;5,335.42&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;324.87&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;5,335.43&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;6,224.67&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;294.63&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;6,224.68&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,113.90&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;253.54&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,113.91&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,382.33&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;217.61&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;background: rgb(249, 249, 249); border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;181&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;7,382.34&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;174&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;En adelante&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-spacing: 0px; border: 1px solid rgb(0, 0, 0); box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 5px;&quot; valign=&quot;top&quot; width=&quot;228&quot;&gt;&lt;div align=&quot;right&quot; style=&quot;border: 0px none; box-sizing: border-box; list-style: none; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;0.00&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px none; box-sizing: border-box; color: #3c3c3c; font-size: 9pt; list-style: none; margin: 0px; outline: none; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Fuente:&amp;nbsp;&lt;a href=&quot;http://contadormx.com/2015/01/05/tablas-isr-2015-y-subsidio-mensual-calculo-de-nomina-sueldos-y-salarios-2015/&quot;&gt;http://contadormx.com/2015/01/05/tablas-isr-2015-y-subsidio-mensual-calculo-de-nomina-sueldos-y-salarios-2015/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/3945576117232787938/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2015/04/calculo-del-sueldo-bruto-partir-del.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/3945576117232787938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/3945576117232787938'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2015/04/calculo-del-sueldo-bruto-partir-del.html' title='Cálculo del Sueldo Bruto e ISR a partir del Sueldo Neto - México'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-1723673714281194572</id><published>2014-03-04T08:20:00.000-08:00</published><updated>2014-03-04T08:20:07.312-08:00</updated><title type='text'>Afilicación del Seguro Social</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, si eres Mexicano/a y necesitas afiliarte al IMSS (darte de Alta por primera vez, obtener tu Numero de Seguro Social NSS) por diversos motivos, ya sea que vas a comenzar a trabajar o que por alguna razón simplemente ocupas el mendigo número he aquí la solución más rápida de tenerlo y todo es a través de internet.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si ya cuentas con tu número pero no lo recuerdas puedes usar los mismos pasos mencionados abajo, simplemente no tendrás que escribir todos tus datos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Documentos requeridos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CURP&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Dirección de correo electrónico (email)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tu domicilio completo&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pasos:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ingresa a la siguiente página: &lt;a href=&quot;http://serviciosdigitales.imss.gob.mx/gestionAsegurados-web-externo/tramite/iniciar?&quot;&gt;IMSS&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Escribe tus datos (CURP, email)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Localiza tu domicilio actual&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Aceptar.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;El sistema te arrojará tu NSS (Número de Seguro Social), lo puedes guardar como PDF para imprimirlo y aparte te lo envía a tu email.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ahora es muy fácil, creo que ya he recuperado un poco de esperanza en mi país.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/1723673714281194572/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2014/03/afilicacion-del-seguro-social.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1723673714281194572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1723673714281194572'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2014/03/afilicacion-del-seguro-social.html' title='Afilicación del Seguro Social'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-3936117025396257717</id><published>2014-01-27T07:25:00.005-08:00</published><updated>2014-01-27T07:31:24.841-08:00</updated><title type='text'>Biomecánica de Rodilla</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La siguiente investigación tiene por fin dar a conocer un poco acerca de la biomecánica. En especial acerca de lo que una parte del cuerpo muy importante, La rodilla:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/Investigacion_Biomecanica_Rodilla.pdf&quot;&gt;https://proyect-general-es.googlecode.com/svn/branches/Main/Investigacion_Biomecanica_Rodilla.pdf&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Checa la wiki:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;https://code.google.com/p/proyect-general-es/wiki/Biomecanica_de_Rodilla&quot;&gt;https://code.google.com/p/proyect-general-es/wiki/Biomecanica_de_Rodilla&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&quot;Dicho trabajo de investigación fue realizado por mí y todo el material dentro del mismo pertenece a diversos autores de diferentes libros y páginas web señalados en el mismo, si deseas usar alguna información por favor incluye un link a esta entrada y marca en tu bibliografía a los autores que hicieron posible mi investigación. Gracias&quot;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/3936117025396257717/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2014/01/biomecanica-de-rodilla.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/3936117025396257717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/3936117025396257717'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2014/01/biomecanica-de-rodilla.html' title='Biomecánica de Rodilla'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-5464319692663035276</id><published>2014-01-03T13:03:00.001-08:00</published><updated>2014-01-03T13:04:13.680-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><category scheme="http://www.blogger.com/atom/ns#" term="SOFTWARE"/><title type='text'>Basic ECG con Arduino y C#</title><content type='html'>&lt;br /&gt;
&lt;h1 style=&quot;background-image: none; border: 0px; font-family: arial, sans-serif; font-size: x-large; margin-top: 0px; max-width: 700px; padding-left: 0px;&quot;&gt;
Introduction&lt;/h1&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
El proyecto completo puede ser descargado por SVN usando:&amp;nbsp;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/&quot; rel=&quot;nofollow&quot; style=&quot;color: #0000cc;&quot;&gt;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
Esta página de la wiki está diseñada con el propósito de dar a conocer una manera sencilla y práctica de hacer un ECG muy pero muy básico que sirva como una pequeña introducción al mundo de las señales mioeléctricas.&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
Dos presentaciones en PPTX fueron desarrolladas, estas contienen mucha información útil:&lt;/div&gt;
&lt;ul style=&quot;font-family: arial, sans-serif; font-size: 13px; max-width: 62em; padding-left: 25px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.3em;&quot;&gt;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/1_ECG_(generalidades).pptx&quot; rel=&quot;nofollow&quot; style=&quot;color: #0000cc;&quot;&gt;Generalidades&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.3em;&quot;&gt;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/2_ECG_(Electrodos_ADAS_Micros_LCD).pptx&quot; rel=&quot;nofollow&quot; style=&quot;color: #0000cc;&quot;&gt;Electrodos&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
(El circuito final mostrado en dichas presentaciones está desactualizado, favor de leer esta página completa o la Tesis para comprender a detalle el proyecto)&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;strong&gt;Todo el trabajo realizado durante el semestre se reduce a la pequeña Tesis a continuación, esta contiene todo lo presentado en esta página y más&lt;/strong&gt;:&amp;nbsp;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/Tesis2.pdf&quot; rel=&quot;nofollow&quot; style=&quot;color: #0000cc;&quot;&gt;Tesis&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;img src=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/Basic_ECG/20_Tarjeta_Impreso_1.jpg&quot; style=&quot;border: 0px; max-width: 100%;&quot; /&gt;Así queda al final&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;img src=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/ECG_Basic/Basic_ECG/22_Electrodos_Cuerpo.jpg&quot; style=&quot;border: 0px; max-width: 100%;&quot; /&gt;Posición de los electrodos&lt;/div&gt;
&lt;h1 style=&quot;background-image: none; border: 0px; font-family: arial, sans-serif; font-size: x-large; margin-top: 0px; max-width: 700px; padding-left: 0px;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3885996089176338758&quot; name=&quot;Objetivo&quot;&gt;&lt;/a&gt;Objetivo&lt;/h1&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
El objetivo de este proyecto bien podría ser el diseño y la creación de un aparato capaz de poder registrar las variaciones eléctricas del corazón por medio de métodos no invasivos, es decir, hacer un electrocardiógrafo fiable, portátil y que pueda ser vendido en el creciente mercado de la medicina. Por desgracia en la universidad el equipo necesario para desarrollar este tipo de investigaciones es muy limitado y la disposición del mismo no es para tiempos flexibles (solo podemos usar el equipo en horarios establecidos y eso que estamos hablando de un simple osciloscopio y una computadora), el presupuesto que destina la universidad para proyectos de este estilo es nulo, es decir no existe (cabe mencionar que el alumno mismo costea todo el proyecto). Con todas estas limitantes no se puede esperar a que el alumno logre un proyecto exitoso al 100% ni mucho menos una investigación a conciencia, M´exico no está preparado aun para nada de esto.&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para ver el proyecto completo accede a mi wiki:&amp;nbsp;&lt;a href=&quot;https://code.google.com/p/proyect-general-es/wiki/ECG_Basic&quot;&gt;https://code.google.com/p/proyect-general-es/wiki/ECG_Basic&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/5464319692663035276/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2014/01/basic-ecg-con-arduino-y-c.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/5464319692663035276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/5464319692663035276'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2014/01/basic-ecg-con-arduino-y-c.html' title='Basic ECG con Arduino y C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-6131751811000717206</id><published>2014-01-03T09:55:00.002-08:00</published><updated>2014-01-03T12:59:31.089-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><title type='text'>Glucómetro. Detector de glucosa sanguínea por medio de Infrarrojos con Arduino y C#</title><content type='html'>&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
Si deseas descargar el proyecto completo usa:&amp;nbsp;&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/Glucometro/&quot; style=&quot;line-height: 1.25em;&quot;&gt;https://proyect-general-es.googlecode.com/svn/branches/Main/Glucometro/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
Se pretende crear un dispositivo medidor de glucosa (al que llamaremos Glucómetro) que sea capaz de comunicarse con una PC, con un dispositivo Android o que pueda ser usado de manera independiente.&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
La conexión a la PC se piensa manejar por medio de USB as´ı como con Android. Para que nuestro Glucómetro sea capaz de funcionar de manera independiente sin una PC o dispositivos Android conectados es necesario que posea una interfaz, dicha interfaz se ha propuesto crearla por medio de componentes que se tengan ya a la mano, es decir push-buttons.&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
El sistema completo constará de dos placas, una Shield para el Arduino y una placa que llamaremos &quot;Placa IR&quot; donde irán montados los LED&#39;s IR y el Transistor IR (esta última placa irá montada junto con la parte &quot;mecánica&quot; es decir, el soporte para las laminillas con la muestar de sangre)&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/Glucometro/Proyecto_Completo%20(2).JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://proyect-general-es.googlecode.com/svn/branches/Main/Glucometro/Proyecto_Completo%20(2).JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
Para ver el proyecto completo consultalo en mi wiki:&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: 1.25em; max-width: 64em;&quot;&gt;
&lt;a href=&quot;https://code.google.com/p/proyect-general-es/wiki/Sensor_Glucosa&quot;&gt;https://code.google.com/p/proyect-general-es/wiki/Sensor_Glucosa&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/6131751811000717206/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2014/01/glucometro-detector-de-glucosa.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6131751811000717206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6131751811000717206'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2014/01/glucometro-detector-de-glucosa.html' title='Glucómetro. Detector de glucosa sanguínea por medio de Infrarrojos con Arduino y C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-7064298946579940696</id><published>2013-12-31T09:01:00.003-08:00</published><updated>2013-12-31T09:02:17.303-08:00</updated><title type='text'>This BLOG is deprecated. Actualización de mi blog.</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A partir de Enero 2014 dejaré de usar este blog para mis proyectos y ahora utilizaré mi wiki de googlecode, esto principalmente a que la oportunidad de poder subir todo mi código por SVN, incluído el archivo .wiki.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Seguiré publicando nuevas entradas aquí para que los seguidores no pierdan el hilo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;https://code.google.com/p/proyect-general-es/&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://code.google.com/p/proyect-general-es/&lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/7064298946579940696/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/12/this-blog-is-deprecated-actualizacion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/7064298946579940696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/7064298946579940696'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/12/this-blog-is-deprecated-actualizacion.html' title='This BLOG is deprecated. Actualización de mi blog.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-2598275805050389205</id><published>2013-05-30T07:37:00.002-07:00</published><updated>2013-05-30T07:49:00.474-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><title type='text'>Evitar Cache del Navegador con Javascript</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Antes que nada una breve explicación del problema:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;El navegador guarda en &quot;caché&quot; una copia de la página web, esto para evitar hacer un &quot;request&quot; al servidor cada vez que se visita, esto es bueno en la mayoría de las circunstancias ya que agiliza el cargar la página WEB (por supuesto que ni siquiera pregunta al servidor por tanto no que se ejecute una llamada HTTP en este sea GET sea POST...), pero si estas desarrollando esto llega a ser un dolor de cabeza.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Mi problema (si deseas leerlo):&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Estoy trabajando por el momento con un modulo FlyPort, el cual crea un WebServer por medio de AdHoc, y a través de llamadas GET y POST controlo acciones en el Microcontrolador PIC embebido. El problema está en que si el BENDITO navegador guarda la pagina WEB en caché y la despliega en lugar de ejecutar un GET nunca lograré invocar ningún evento en el Micro. Lo cual me convierte en HULK &amp;nbsp;=( cada vez que pasa.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Este problema se me ha presentado y una solución que he implementado y que me ha funcionado al 100% para &quot;evitar&quot; que el navegador despliegue repetidamente la pagina en caché, es de&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;agregar un parametro al azar que haga que cada URL siempre sea diferente y unica y así &quot;forzar&quot; al navegador a siempre hacer una llamada el server.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Por ejemplo:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;Deseas ejecutar la URL&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;simsynchro.html?cmd=5&lt;/b&gt; pero al momento de ejecutarla no ves cambios, esto porque el navegador ha guardado en caché la respuesta del server a esta URL. Agregando un parámetro al azar solucionas todo, por tanto: &lt;br /&gt; &lt;br /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: #DBE5F1; border-collapse: collapse; border: none; mso-background-themecolor: accent1; mso-background-themetint: 51; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;&quot; valign=&quot;top&quot; width=&quot;638&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; url = &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;simsynchro.html?cmd=5&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; date = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Date();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; dummyDateParam = &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&amp;amp;dummy=&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; + (date.getMonth()
  + 1) + &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; + date.getDate() + &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; +
  date.getFullYear() + &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;_&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; + date.getTime();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;url +=
  dummyDateParam;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;window.location
  = url;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; &lt;br /&gt; Deberías crear una función que te agregue de manera automática el parámetro y listo.&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;TAGS:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Avoid Browser Caché&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;El navegador guarda caché&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Refrescar Javascript&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Navegador no ejecuta script&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Javascript no se ejecuta&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Evitar que el navegador guarde caché&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FlyPort AJAX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;AJAX no funciona&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;AJAX no se ejecuta&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FlyPort not executing GET&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/2598275805050389205/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/05/evitar-cache-del-navegador.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2598275805050389205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2598275805050389205'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/05/evitar-cache-del-navegador.html' title='Evitar Cache del Navegador con Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-1144039503312691598</id><published>2013-05-16T00:44:00.000-07:00</published><updated>2013-05-19T17:03:17.205-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><title type='text'>Control de Motores (AC y DC) por medio de la Computadora</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Control de Motor Monofásico, On/Off por medio de una Computadora Personal.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Control de 2 Motores DC, On/Off y sentido de giro por medio de una Computadora Personal&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Introducción&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
En el presente proyecto tuvo como finalidad de dejar al laboratorio un dispositivo capaz de permitir&amp;nbsp;el controlar varios motores&amp;nbsp;eléctricos&amp;nbsp;por medio de la computadora, se construyo un driver con&amp;nbsp;micro-controlador&amp;nbsp; se hizo uso de comunicación USB-Serial, se desarrollo una Interfaz Hombre-Maquina echa en C#, se uso un motor de AC y dos de DC.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
Control de Motor AC&lt;br /&gt;
En la clase se estudia cómo se controlan diferentes tipos de motores, en el salón se dispone de un motor monofásico, a este no se nos fue posible controlar el sentido de giro ya que los 2 embobinados, el de arranque y el trabajo, están unidos en los cables de sus “neutros” por lo que no se puede invertir las terminales, como no se pudo controlar la dirección, se agregaron dos motores de corriente directa para demostrar que el sentido de giro puede ser cambiado en un motor.&lt;br /&gt;
Cabe mencionar que el trabajo anterior, tenía un tablero para cambiar el sentido de giro del motor monofásico; pero se hacía un corto circuito y esto ocasionaba que el motor empezara a fallar y producir humo, puesto que esa operación forzada pudiera dañar al motor, se cambió el circuito que traía puesto que los dispositivos no trabajaban como debían así como los interruptores de cambio de giro.&lt;br /&gt;
&lt;br /&gt;
Desarrollo&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjosFyUmxzARmaMQXuuX_x4_dxjzvAEygYVKED3gy55eNnSmqAiPqEwKor9fgi5M6s6BD98A7a37aHG6Qzn4iAoFafcOGLNwLOAzjP401vszvSQp0r9NDZtXyJb8btl3Sq_18n0xe0a_wwB/s1600/Diagrama+de+Subsistemas+de+la+funcion+controlar+un+motor.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjosFyUmxzARmaMQXuuX_x4_dxjzvAEygYVKED3gy55eNnSmqAiPqEwKor9fgi5M6s6BD98A7a37aHG6Qzn4iAoFafcOGLNwLOAzjP401vszvSQp0r9NDZtXyJb8btl3Sq_18n0xe0a_wwB/s400/Diagrama+de+Subsistemas+de+la+funcion+controlar+un+motor.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 1.- Diagrama de Subsistemas de la función
controlar un motor.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Matariales:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1) Motor de Corriente Alterna:&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;div&gt;
Para saber cómo funciona el motor se hicieron diferentes pruebas, al motor encontrando la siguiente información:&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Motor, 3-3358-4 333584 del secador de Maytag&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Modelo S58NXEET-2895&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Potencia, 1/4B&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Voltaje 115 AC&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;RPM 1725&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;60 Hz.&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;6 Amperes.&lt;/div&gt;
&lt;div&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CL B 40 °C&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0AhqpNUdXp_SAOiw_XqTurCSaWbDvVP0aiC4mAVMZCu3Ga6E25ubDV_Q_fGBbScAeHb7sk2zjRU06fFOA4UOPW7HLFd0IOqrgrq9Ml6rjnw2ftSQz962GMHZUGzeoyXXLErlLFhM7DEt8/s1600/Etiqueta_Motor_CA_del_Salon.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0AhqpNUdXp_SAOiw_XqTurCSaWbDvVP0aiC4mAVMZCu3Ga6E25ubDV_Q_fGBbScAeHb7sk2zjRU06fFOA4UOPW7HLFd0IOqrgrq9Ml6rjnw2ftSQz962GMHZUGzeoyXXLErlLFhM7DEt8/s400/Etiqueta_Motor_CA_del_Salon.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;Figura 2.- Etiqueta de datos del fabricante del motor
monofásico.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyTd4x6jNJ2D5P8bdFJnkC6SEnhRr42EM6FHt34HmLs8wpnLQqOoA6gR_l8TE4tPkXIrRicZuHQ8OkDLth32b_8J9Oo93PZg0MuIkmfc5DLrBA2B1xegxJnq_uN8uPfQLAr7-Ykuqhzsa/s1600/Motor_AC_Foto_de_Internet.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyTd4x6jNJ2D5P8bdFJnkC6SEnhRr42EM6FHt34HmLs8wpnLQqOoA6gR_l8TE4tPkXIrRicZuHQ8OkDLth32b_8J9Oo93PZg0MuIkmfc5DLrBA2B1xegxJnq_uN8uPfQLAr7-Ykuqhzsa/s1600/Motor_AC_Foto_de_Internet.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 3.- Fotografía del motor monofásico del
laboratorio.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Como se aprecia en las fotografías se tienen 3 cables de diferentes colores, los cuales se identificaron como:&lt;br /&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Amarillo&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Fase del embobinado de trabajo&lt;br /&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Azul&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;-&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Neutro del embobinado de trabajo&lt;br /&gt;
•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Negro&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Fase del embobinado de arranque&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglnIan1Wr-tmP2fivSTRIyjKqIloXfBAB5LlBWHr4sfHtTwZOfcg0Um-UsdhIJ_480A5ApgRlMkQILX3ICS9bHTKukl30yqINYFEZQjwkS-_tGOaZ_GX3POlnEXUI_8M3IaXLG5uhqcQq/s1600/Motor_AC_CablesyBobinas.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglnIan1Wr-tmP2fivSTRIyjKqIloXfBAB5LlBWHr4sfHtTwZOfcg0Um-UsdhIJ_480A5ApgRlMkQILX3ICS9bHTKukl30yqINYFEZQjwkS-_tGOaZ_GX3POlnEXUI_8M3IaXLG5uhqcQq/s320/Motor_AC_CablesyBobinas.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: xx-small; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 4.- En la imagen de arriba se muestra como se cree
que es el arreglo de las terminales de las bobinas del motor de AC.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;El trabajo anterior tenía
dos interruptores de palanca, uno de encendido y otro de dirección, los cuales
al hacer girar el motor a favor de las manecillas del reloj no había problema,
pero al momento de hacerles girar en contra se ponía al cable azul sin
conectar, el amarillo se llevaba a la fase y el negro al neutro; si se seguía
con esta operación se quemaría el motor puesto que sacaba humo después de un
rato.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ikpqRVoXBRJZi-nApcGloSsCax3jUNvB70_78O_nhQRr66-n6pRBKvJkXwjQjHFEFHE-vRbk2bSrsBjZ9w7xX1R_MEqcp1GOykIhWx1A5ds5Zpm650Jjg4SdqWZxwphKC2-X5ODAzqGg/s1600/Motor_AC_cambio+de+giro.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;62&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4ikpqRVoXBRJZi-nApcGloSsCax3jUNvB70_78O_nhQRr66-n6pRBKvJkXwjQjHFEFHE-vRbk2bSrsBjZ9w7xX1R_MEqcp1GOykIhWx1A5ds5Zpm650Jjg4SdqWZxwphKC2-X5ODAzqGg/s320/Motor_AC_cambio+de+giro.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 5.- Diagrama de conexiones cuando se forzaba a
girar en sentido contrario al motor de AC.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Se podía hacer girar el motor desconectando el bobinado de arranque, desconectando el cable negro, dejando alimentados los demás con CA; pero se requería girar el eje manualmente hacia el lado deseado.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Para poder invertir su sentido de giro hay que invertir solo las terminales del bobinado de trabajo sin invertir las de arranque pero con lo anteriormente expuesto no se podía controlar el motor de AC.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Para poder controlarlo, por medio de la computadora; solo se requiere decirle al micro-controlador que encienda al motor, como este solo trabaja a 5V requerirá de otro dispositivo que lo encienda para ello se hizo uso de un relevador activado por el micro-controlador, que al cerrarse alimentara al motor con 127 AC ~.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOAzY5vtwio41d3qYSEccVGOfBQ6-lNP2PZjZIudrEva778sO-ybFPZPaqL4ZzWmK8Q3TGsdM6T2mJT1hJBQZXVEoGQmci1dnKnZdtswaySYZf3CPKTJLQVNqQpsNbkX4yYfUMC3fUaWCO/s1600/Microcontrolador_Contro_MAC_Relevador.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOAzY5vtwio41d3qYSEccVGOfBQ6-lNP2PZjZIudrEva778sO-ybFPZPaqL4ZzWmK8Q3TGsdM6T2mJT1hJBQZXVEoGQmci1dnKnZdtswaySYZf3CPKTJLQVNqQpsNbkX4yYfUMC3fUaWCO/s1600/Microcontrolador_Contro_MAC_Relevador.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 115%;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 115%;&quot;&gt;Figura 6.- Arriba parte del esquemático donde se
muestra al micro-controlador activando y desactivando al relevador, en el
circuito se puso en paralelo e invertido un diodo con respecto a la bobina del
relevador para evitar que las contracorriente dañen al dispositivo.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2) &amp;nbsp;Control de motor DC:&lt;br /&gt;
&lt;br /&gt;
Como no se pudo hacer el cambio de giro del motor AC, se anexaron dos motores de DC para demostrar el sentido de cambio todo controlado por la computadora. Para esto se hizo uso de un puente H, en circuito integrado sin diodos de rodada estos se tuvieron que poner externos.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPL-YQKHIuHmVlmZLlRWQnk_tiTI44BhKVm9dszGdu_NgnH_89PLxZIDsqhnBvc_gdYQkKVz7dD2SSWb03f_znE4s9xcrAxtsutdeTQLkiqAZp2CMWN8fdGjdcbkyY0L4Vn1M2G8AYUE1u/s1600/Microcontrolador_Contro_MDC_PuenteH.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPL-YQKHIuHmVlmZLlRWQnk_tiTI44BhKVm9dszGdu_NgnH_89PLxZIDsqhnBvc_gdYQkKVz7dD2SSWb03f_znE4s9xcrAxtsutdeTQLkiqAZp2CMWN8fdGjdcbkyY0L4Vn1M2G8AYUE1u/s320/Microcontrolador_Contro_MDC_PuenteH.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: xx-small; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 7.- Arriba se muestra la sección del esquemático
para el control de 2 motores de DC, se hizo uso del circuito integrado L293.
Las señales de sentido de giro son mandadas desde el micro-controlador&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3) Micro-controlador:&lt;br /&gt;
&lt;br /&gt;
Se eligió para este trabajo el uso del micro-controlador PIC16F877P para mandar los pulsos de señal, así como recibir las instrucciones de la computadora por medio de puerto serial.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSxloKa2ud_uCvP2UffKf7V37rczO4hg-W0qd7mrlFeLu2lhmXnQjBEC3iUc-ML2840mCXQAikouYMKBE2B0SYkA0mdA0AM-lcc2W-XmGxHh5HJVvqEk2wX4dTsbm5IgImYCdMIqiDqXm3/s1600/Microcontrolador_Control.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSxloKa2ud_uCvP2UffKf7V37rczO4hg-W0qd7mrlFeLu2lhmXnQjBEC3iUc-ML2840mCXQAikouYMKBE2B0SYkA0mdA0AM-lcc2W-XmGxHh5HJVvqEk2wX4dTsbm5IgImYCdMIqiDqXm3/s1600/Microcontrolador_Control.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 8.- Esquemático del micro-controlador usado.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyta9eHQse1HHmcGjMTMhLAYcd5ODAEnlKOe-kSeHbzN1hb3A0DofIy8d-ne81aFzTFHZcz3Clf_A6mY3aSqFi2bQ-x54wiTsbg5SDut_EkixD57sXQtmBUEcJx5IJ1xEgvIhZucVEBkXl/s1600/Microcontrolador_ParpadeoLED.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyta9eHQse1HHmcGjMTMhLAYcd5ODAEnlKOe-kSeHbzN1hb3A0DofIy8d-ne81aFzTFHZcz3Clf_A6mY3aSqFi2bQ-x54wiTsbg5SDut_EkixD57sXQtmBUEcJx5IJ1xEgvIhZucVEBkXl/s1600/Microcontrolador_ParpadeoLED.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 9.- Arriba se muestran las conexiones al PIC para
primero hacer el parpadeo de un led que nos asegurara que el PIC trabaja bien y
segundo unas terminales para poder reprogramar al PIC In Circuit Program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO4VLE73gj2wGQvQi4bHQGg2ZOlfVbbQNKsZQK_SzmgAZkakg546BPjpJp0EpIPreCc4n23eQLw2dbtmWsPYywfmQ9Vo_pVM1zVWhlKqo4TxKZ1Ap9ez0bCfSeA13QIOXckaeBrC9w7y0o/s1600/Microcontrolador_Comunicaci%C3%B3n_Serial.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO4VLE73gj2wGQvQi4bHQGg2ZOlfVbbQNKsZQK_SzmgAZkakg546BPjpJp0EpIPreCc4n23eQLw2dbtmWsPYywfmQ9Vo_pVM1zVWhlKqo4TxKZ1Ap9ez0bCfSeA13QIOXckaeBrC9w7y0o/s1600/Microcontrolador_Comunicaci%C3%B3n_Serial.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;Figura 10.- En la imagen de arriba se muestran las
conexiones de la comunicación serial echa por medio de un MAX233.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7dXOL9DQ8Ci-YKUHbhJbKuxRLqXliUja2f2z2MBMU_3fuOxgNNj5hLhwOVWwGSxS3fASm-JKz4QQ4jZr5ui7uj5VzqqSKdDKiJx3cYIK5Uyl286usYiiY3w6tmBkDI8RUjBuaoZvrVZHa/s1600/Aliementaci%C3%B3n_5V_Esquematico.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7dXOL9DQ8Ci-YKUHbhJbKuxRLqXliUja2f2z2MBMU_3fuOxgNNj5hLhwOVWwGSxS3fASm-JKz4QQ4jZr5ui7uj5VzqqSKdDKiJx3cYIK5Uyl286usYiiY3w6tmBkDI8RUjBuaoZvrVZHa/s1600/Aliementaci%C3%B3n_5V_Esquematico.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Figura 11.- Esta parte del esquemático muestra que la
alimentación de todos los dispositivos a 5 V será interrumpida por un
interruptor de palanca, para hacer el encendido y apagado.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy5hBltpiwdTHfolv_H_qMTK_VGo9bb6GRGIbH0K9iYAnfgWLqdy5UZWM2TVAS_KOCt2hY7pPsBqiwS-5vaJOuoFCQClajkZLCdhl3WWXx1yxqZoR72E4mXQfxrA1ppQFDRsNhQGuMgB9O/s1600/Entradas_PIC_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy5hBltpiwdTHfolv_H_qMTK_VGo9bb6GRGIbH0K9iYAnfgWLqdy5UZWM2TVAS_KOCt2hY7pPsBqiwS-5vaJOuoFCQClajkZLCdhl3WWXx1yxqZoR72E4mXQfxrA1ppQFDRsNhQGuMgB9O/s1600/Entradas_PIC_1.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgpHuoc1SPUseosQynRs6dhTItSm_iRlEV9jrjqPxsAp5MWUnq9fjREay0byMwM4xXdLx5tBOn-2yv95zh7e-JaryKPNQKXsxYvAp4zJ23BMl8IkW5M49KO5RQSbNkJAyI6OfSim7ooXcY/s1600/Entradas_PIC_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgpHuoc1SPUseosQynRs6dhTItSm_iRlEV9jrjqPxsAp5MWUnq9fjREay0byMwM4xXdLx5tBOn-2yv95zh7e-JaryKPNQKXsxYvAp4zJ23BMl8IkW5M49KO5RQSbNkJAyI6OfSim7ooXcY/s1600/Entradas_PIC_2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;Figura 12.- En la imagen de arriba se muestran las
entradas que tendrá el PIC para ser controlado por un tablero y así tener una
botonera para controlar los motores cuando no se disponga de una computadora,
en el dibujo no se aprecia pero todas las 8 conexiones tienen un diodo que va a
un 9° pin del micro este es para hacer que lea el estado del teclado.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;Interfaz Hombre-Maquina&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;Se desarrollo una interfaz de manera que simulara los tipos de tableros que se manejan físicamente para control de maquinas rotativas o en lineas de producción, algunas de las características de la interfaz se basaron en las recomendaciones del los estándares de la &amp;lt;&amp;lt;referencia 1&amp;gt;&amp;gt;. La interfaz es gráfica y hace uso de imágenes para su manejo, el usuario puede interactuar con ella para el control de los motores, también presenta bloqueos de seguridad (los botones de inhabilitan) dependiendo de las operaciones. En el vídeo del final se pueden apreciar las funciones de todo el proyecto.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2jNUdkjlafkk5BB9uyxbbNiRH8wmLBVNP2X3nUbLFfdAdsB5GrMOqgZUwf0gPn4iwCqEfUbn82m-bbmaRm7LB18Iaq9vfufINJChEjGVAYKdgOOKmcGQL2SJX7BqvHsLh4Zb4-lr9fr6e/s1600/Interfaz_prototipo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2jNUdkjlafkk5BB9uyxbbNiRH8wmLBVNP2X3nUbLFfdAdsB5GrMOqgZUwf0gPn4iwCqEfUbn82m-bbmaRm7LB18Iaq9vfufINJChEjGVAYKdgOOKmcGQL2SJX7BqvHsLh4Zb4-lr9fr6e/s320/Interfaz_prototipo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;En la imagen de arriba, se muestra el primer prototipo de la interfaz para el usuario final.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnf3Yr9uVkTuAXxe5bIqANP_R9AJksYwTy_okzAwNIu2jL__MdIxFi_Pe_rkcMuGg6pf-xGZfYWp9q_3wx9KIqyJm7Pn_yMJSyPxvvBfAvJ_YNNNmKMk7YTJk4QMH_0LBoSkQbko-Cazj9/s1600/Interfaz_resultado_aprovado.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnf3Yr9uVkTuAXxe5bIqANP_R9AJksYwTy_okzAwNIu2jL__MdIxFi_Pe_rkcMuGg6pf-xGZfYWp9q_3wx9KIqyJm7Pn_yMJSyPxvvBfAvJ_YNNNmKMk7YTJk4QMH_0LBoSkQbko-Cazj9/s320/Interfaz_resultado_aprovado.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;En la imagen de arriba, se muestra la interfaz&amp;nbsp;aprobada&amp;nbsp;para su uso.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Vídeo&lt;span style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;del Proyecto:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/e-FbUpDLwLU&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;Conclusiones:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Interfaz H-M. Vemos que el resultado final es mas amigable que el prototipo presentado, los botones son mas&amp;nbsp;fáciles&amp;nbsp;de diferenciar, la consola de comunicación se coloco por debajo del&amp;nbsp;área&amp;nbsp;del trabajo, ya que&amp;nbsp;en sí&amp;nbsp;no es necesaria para el operador, es importante para los desarrolladores de la interfaz para saber si ocurre&amp;nbsp;algún&amp;nbsp;error con la comunicación serial; también esta la parte que comienza la comunicación serial, que sera usada por operarios y desarrolladores.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Referencias:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
1.-&amp;nbsp;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px;&quot;&gt;NFPA 79: Electrical Standard for Industrial Machinery, 2002 Edition&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px;&quot;&gt;2.-&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://esp.ebay.com/viewItem?item=110766848335&amp;amp;v=gbh&quot;&gt;http://esp.ebay.com/viewItem?item=110766848335&amp;amp;v=gbh&lt;/a&gt;&lt;br /&gt;
3.-&amp;nbsp;&lt;a href=&quot;http://html.rincondelvago.com/motores-de-induccion-monofasicos-asincronos.html&quot;&gt;http://html.rincondelvago.com/motores-de-induccion-monofasicos-asincronos.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Anexo A (Programas Utilizados):&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;Microsoft Visual Studio 2010&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; PIC
C Compiler (PCWHD Compiler, CCS inc.)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; Eagle
PCB Software&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;text-indent: -18pt;&quot;&gt;Solid
Works 2010&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;
&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/1144039503312691598/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/05/control-de-motores-ac-y-dc-por-medio-de.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1144039503312691598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1144039503312691598'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/05/control-de-motores-ac-y-dc-por-medio-de.html' title='Control de Motores (AC y DC) por medio de la Computadora'/><author><name>GEM &amp;amp; Jewels</name><uri>http://www.blogger.com/profile/16630247685610336328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjosFyUmxzARmaMQXuuX_x4_dxjzvAEygYVKED3gy55eNnSmqAiPqEwKor9fgi5M6s6BD98A7a37aHG6Qzn4iAoFafcOGLNwLOAzjP401vszvSQp0r9NDZtXyJb8btl3Sq_18n0xe0a_wwB/s72-c/Diagrama+de+Subsistemas+de+la+funcion+controlar+un+motor.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4670126321696378961</id><published>2013-04-04T01:08:00.001-07:00</published><updated>2013-04-08T03:01:02.630-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>HCS08 - Motorola Freescale - Contador 0 a 99 en 2 Display 7 Segmentos</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para ayudar a varios compatriotas en mi Universidad me he dispuesto a crear esta entrada.. bla bla bla&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A lo bueno.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;NOTA: Se seguirá usando para programar el microcontrolador el debugger ICSP tan usado en anteriores entradas (BDM).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: orange; font-size: large;&quot;&gt;Descripción del Proyecto.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Crear una cuenta de 0 a 99, la cual se incrementará en una unidad cada segundo, esta cuenta será en sistema decimal y los resultados de la misma serán mostrados en dos display de 7 segmentos, uno por digito.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se usaran dos transistores 2N3906 como conmutadores para activar cada uno de los display de 7 conectando el común de estos al transistor los cuales por medio de un pulso en su Base activaran o desactivaran el display a conveniencia.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se usan también dos Buffers de corriente CD4050 para que la corriente demandada por cada display se cargue sobre estos y no sobre los microcontroladores y que este ultimo solo tenga la acción de mandar pulsos lógicos de voltaje.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;Contador digital&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Un contador
digital es básicamente un circuito electrónico que muestra un cambio cada
cierto periodo de tiempo establecido, este periodo de tiempo es común que sea
ajustable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Estos cambios se pueden manifestar de diferentes maneras de acuerdo
a lo que se desee lograr, como por ejemplo, mostrar una cuenta de números en
cualquier tipo interfaz visual, o activar cierto relé que a su vez crear más
cambios.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;También son usados como una manera sencilla de realizar acciones
cada cierto tiempo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En nuestro caso, nuestro contador mostrara una cuenta de números
decimales del 0 al 99 mostrado en dos display de 7 segmentos, esta cuenta se
incrementara en intervalos de una unidad cada segundo que pase.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;b&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: Calibri, sans-serif; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: orange; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;b&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: Calibri, sans-serif; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: orange; font-size: large;&quot;&gt;Display
de 7 segmentos&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;b&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Los Display de 7 segmentos son básicamente un arreglo de leds
ordenados de tal forma que encendiendo unos cuantos de estos puedes formar
números y algunas letras, en otros símbolos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hay dos distintos, ya sea cátodo común o ánodo común, esto debido a
que los leds dentro de los mismo tienen todos interconectados a un mismo punto
el cátodo o el ánodo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Por tanto conectando este punto común a una fuente de voltaje (para
el caso del ánodo común) se puede encender cada led interno mandando un estado
lógico bajo o a tierra (para el caso del cátodo común) y mandándole un pulso
lógico alto.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7YPGPcqNGqvUvszFUgx6ZI0Kd0HykRbzwfOzFKf13b0xCtu4ztRMRyfLVIzRwHrA8L751j0TyZPHythgEUZvLVyohSnyhq9CMdPWepOV-6gZ_xAY2BLRckaJe4guWxA8MXc_MBX3a-BIm/s1600/disp7.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7YPGPcqNGqvUvszFUgx6ZI0Kd0HykRbzwfOzFKf13b0xCtu4ztRMRyfLVIzRwHrA8L751j0TyZPHythgEUZvLVyohSnyhq9CMdPWepOV-6gZ_xAY2BLRckaJe4guWxA8MXc_MBX3a-BIm/s320/disp7.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;b&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: Calibri, sans-serif; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: orange; font-size: large;&quot;&gt;Transistor
PNP 2N3906&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;b&gt;&lt;span lang=&quot;ES-MX&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: ES-MX; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;El transistor es un dispositivo semiconductor que cumple varias
funciones, entre ellas están las de amplificador, oscilador, conmutador o
rectificador. En este caso lo usaremos de conmutador para crear la acción de
barrido en los display de 7 segmentos. &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1U34PQkWb-jqYhn3xMkyyathAUN0sjuBzuzqLQNDxDEDnqEbIIjuTO6b-5J708r6MEjJt-8ytVpqfX_juTlBvP1G-ph23b4jLEL-lYt-XhtFcFQDq9lX_VLLPdVSWx3iSuPDCwiiYT1SB/s1600/transistor.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1U34PQkWb-jqYhn3xMkyyathAUN0sjuBzuzqLQNDxDEDnqEbIIjuTO6b-5J708r6MEjJt-8ytVpqfX_juTlBvP1G-ph23b4jLEL-lYt-XhtFcFQDq9lX_VLLPdVSWx3iSuPDCwiiYT1SB/s1600/transistor.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Esquematicos&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxOAypDXhruaPkjon_WuE9F-NLQQu7Yxn6aWUyqumORS77dTLUtj0cOKsE_iOmqGNzBidKvv7YFXlvbeKnUsYyCy5KDn-nmd4ln56sVyEJtcmXyTwrSDbFqNd6gwOfc05R134Rl8mjPQa/s1600/esquematico1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxOAypDXhruaPkjon_WuE9F-NLQQu7Yxn6aWUyqumORS77dTLUtj0cOKsE_iOmqGNzBidKvv7YFXlvbeKnUsYyCy5KDn-nmd4ln56sVyEJtcmXyTwrSDbFqNd6gwOfc05R134Rl8mjPQa/s320/esquematico1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEips8vgvQsac-VkZewhSk16R5Of73ikKa_m7YjphK8V2hoeiSoJSjZGdR7P2bXDkFd8WhBI6PKbBQezMi58xE7T_6HYqeQxUqYGaOqkOhMSeHUibIkJmHTqnlf01THMFRTgONCwr6wmJrgK/s1600/esquematico2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEips8vgvQsac-VkZewhSk16R5Of73ikKa_m7YjphK8V2hoeiSoJSjZGdR7P2bXDkFd8WhBI6PKbBQezMi58xE7T_6HYqeQxUqYGaOqkOhMSeHUibIkJmHTqnlf01THMFRTgONCwr6wmJrgK/s320/esquematico2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Descarga:&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/HCS08/Schematic%20Prints.pdf/download&quot;&gt;pdf&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;CODIGO&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: css&quot;&gt;;*******************************************************************
;* This stationery serves as the framework for a user application. *
;* For a more comprehensive program that demonstrates the more     *
;* advanced functionality of this processor, please see the        *
;* demonstration applications, located in the examples             *
;* subdirectory of the &quot;Freescale CodeWarrior for HC08&quot; program    *
;* directory.                                                      *
;*******************************************************************

; Include derivative-specific definitions
            INCLUDE &#39;derivative.inc&#39;
;
; export symbols
;
            XDEF _Startup
            ABSENTRY _Startup

;
; variable/data section
;
            ORG    RAMStart         ; Insert your data definition here
ExampleVar: DS.B   1
contador:    equ  $90
unidades:   equ   $92
unidadesA:  equ   $93          
decenas:    equ   $94
decenasA:   equ   $95
tope:       equ   $96

;
; code section
;
            ORG    ROMStart

_Startup:
            LDHX   #RAMEnd+1        ; initialize the stack pointer
            TXS
            CLI                     ; enable interrupts

PROG_PORTS:  
            MOV   #$FF,PTBDD         ;puerto B salida
            MOV   #$FF,PTCDD         ;declaramos puerto C como salida            
            MOV   #$64,RTCMOD        ;declaramos timer a un segundo, con tope el 100=$64
            MOV   #%1111,RTCSC
            
            MOV   #$00,contador       ;iniciamos el contador con cero
            MOV   #$00,unidades       ;inicializamos unidades y decenas
            MOV   #$00,decenas
            
                        ;cargamos el valor de ajuste a disp 7 segm en las memorias
            MOV   #111111,$80      ;ajuste del 0
            MOV   #000110,$81      ;ajuste del 1
            MOV   #%01011011,$82
            MOV   #%01001111,$83
            MOV   #%01100110,$84
            MOV   #%01101101,$85
            MOV   #%01111101,$86
            MOV   #000111,$87
            MOV   #%01111111,$88
            MOV   #%01100111,$89      ;ajuste del 9
            
main:
            feed_watchdog
            BSR   checa_cuenta        ;vamos a la subrutina que lleva la cuenta en unidades y decenas
            BSR   ajusta_unidades             ;subrutina que ajusta el valor de unidades y decenas para desplegarlo en el disp 7 segm
            BSR   ajusta_decenas
            LDA   unidadesA           ;cargamos unidades y decenas ajustadas y las mostramos en el display
            STA   PTBD
            MOV   #%10,PTCD
            BSR   retardo
            LDA   decenasA
            STA   PTBD
            MOV   #%01,PTCD
            BSR   retardo
            LDA   contador            ;checamos si se paso del 99
            CBEQA #$64,hacercero 
            BRA   main
;subrutina que regresa a cero todo
;-------------------
hacercero:
            MOV   #$00,unidades
            MOV   #$00,unidadesA
            MOV   #$00,decenas
            MOV   #$00,decenasA
            MOV   #$00,contador
            BRA   main


            
;--------------------------------
            
;--------------Rutina checa cuenta
checa_cuenta:
                LDA   RTCCNT
                CMP   contador
                BNE   incrementa_cuenta             ;si no es el mismo numero, es decir, ya cambio (ya paso el tiempo programado)
                RTS                                 ;si es el mismo, regresamos
                
incrementa_cuenta:
                LDA   RTCCNT                        ;como no son iguales, los hacemos iguales
                STA   contador
                INC   unidades                      ;si las unidades completa una decena
                LDA   unidades                      ;regresamos a cero unidades y decenas +1
                CMP   #$A
                BEQ   una_decena_mas
                RTS                
una_decena_mas:
                MOV   #$00,unidades
                INC   decenas
                RTS
;--------------termian rutina checa cuenta            
;---------------------*******Subrutina de retardo                
retardo:       
            LDHX  #$0000
RET1:        
            feed_watchdog
            AIX   #$01
            CPHX  #$FF            ;Se incrementa este valor para hacer un retardo mas largo
            BNE   RET1
            RTS
;-----------------------****Termian el retardo

;.---------------------------Subrutinas de ajuste            
ajusta_unidades:
                LDHX    #$80                    ;apuntamos a la memoria $80, que es donde empiezan los valores de ajuste
                MOV     #$80,tope               ;colocamos $80 en la memoria que servira de tope
                LDA     unidades
                ADD     tope                    ;cargamos las unidades y las sumamos a tope obteniendo asi ($80+unidades) la direccion del numero para ajustar
                STA     tope                
ciclo_unidades:                             
                feed_watchdog                   ;recorremos desde la memoria $80 hasta que llegemos a la memoria tope($80+unidades)
                CPX     tope  
                BEQ     salir_unidades
                INCX
                BRA     ciclo_unidades               
salir_unidades:                                
                LDA   ,X
                STA   unidadesA                 ;el valor de la memoria tope la guardamos en unidadesA el cual sera el valor ajustado de la unidad
                RTS
                
ajusta_decenas:
                LDHX    #$80                    ;misma explicacion que para unidades pero con decenas
                MOV     #$80,tope
                LDA     decenas
                ADD     tope
                STA     tope                
ciclo_decenas:
                feed_watchdog
                CPX     tope  
                BEQ     salir_decenas
                INCX
                BRA     ciclo_decenas               
salir_decenas:                                
                LDA   ,X
                STA   decenasA        
                RTS            
;--------------Terminan las subrutinas de ajuste            
            

;**************************************************************
;* spurious - Spurious Interrupt Service Routine.             *
;*             (unwanted interrupt)                           *
;**************************************************************
spurious:                           ; placed here so that security value
            NOP                     ; does not change all the time.
            RTI

;**************************************************************
;*                 Interrupt Vectors                          *
;**************************************************************
            ORG   $FFFA

            DC.W  spurious          ;
            DC.W  spurious          ; SWI
            DC.W  _Startup          ; Reset



&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Descarga .asm:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/HCS08/main.asm/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Descarga el proyecto para CodeWarrior:&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/HCS08/proyectoContador.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;REVISION&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;ES-MX&quot;&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Este codigo que coloco fue desarrollado hace mucho tiempo por mí, así que por el momento no recuerdo del todo sí es 100% funcional o si falta ajustar algo (tengo varias versiones del mismo proyecto y coloqué aquí la mas reciente).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pido a cualquier persona que se atreva a probarlo a comentar su funcionalidad.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;tchao&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4670126321696378961/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/04/hcs08-motorola-freescale-contador-0-99.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4670126321696378961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4670126321696378961'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/04/hcs08-motorola-freescale-contador-0-99.html' title='HCS08 - Motorola Freescale - Contador 0 a 99 en 2 Display 7 Segmentos'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7YPGPcqNGqvUvszFUgx6ZI0Kd0HykRbzwfOzFKf13b0xCtu4ztRMRyfLVIzRwHrA8L751j0TyZPHythgEUZvLVyohSnyhq9CMdPWepOV-6gZ_xAY2BLRckaJe4guWxA8MXc_MBX3a-BIm/s72-c/disp7.gif" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-8364534347892493915</id><published>2013-03-24T06:49:00.000-07:00</published><updated>2013-03-24T07:01:09.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><title type='text'>Drag and Drop Canvas</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Antes que nada, el código no es mío, solo quiero aportarlo a mi blog por se simple y bello, el link a la web del autor se encuentra en Referencias.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: js&quot;&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta charset=&quot;UTF-8&quot; /&amp;gt;
&amp;lt;title&amp;gt;Canvas Drag and Drop Test&amp;lt;/title&amp;gt;
 
 &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;

 var canvas;
 var ctx;
 var x = 75;
 var y = 50;
 var WIDTH = 400;
 var HEIGHT = 300;
 var dragok = false;
 
 function rect(x,y,w,h) {
  ctx.beginPath();
  ctx.rect(x,y,w,h);
  ctx.closePath();
  ctx.fill();
 }
 
 function clear() {
  ctx.clearRect(0, 0, WIDTH, HEIGHT);
 }
 
 function init() {
  canvas = document.getElementById(&quot;canvas&quot;);
  ctx = canvas.getContext(&quot;2d&quot;);
  return setInterval(draw, 10);
 }
 
 function draw() {
  clear();
  ctx.fillStyle = &quot;#FAF7F8&quot;;
  rect(0,0,WIDTH,HEIGHT);
  ctx.fillStyle = &quot;#444444&quot;;
  rect(x - 15, y - 15, 30, 30);
 }
 
 function myMove(e){
  if (dragok){
   x = e.pageX - canvas.offsetLeft;
   y = e.pageY - canvas.offsetTop;
  }
 }
 
 function myDown(e){
  if (e.pageX &amp;lt; x + 15 + canvas.offsetLeft &amp;amp;&amp;amp; e.pageX &amp;gt; x - 15 +
  canvas.offsetLeft &amp;amp;&amp;amp; e.pageY &amp;lt; y + 15 + canvas.offsetTop &amp;amp;&amp;amp;
  e.pageY &amp;gt; y -15 + canvas.offsetTop){
   x = e.pageX - canvas.offsetLeft;
   y = e.pageY - canvas.offsetTop;
   dragok = true;
   canvas.onmousemove = myMove;
  }
 }
 
 function myUp(){
  dragok = false;
  canvas.onmousemove = null;
 }
 
 function here()
 {
  init();
  canvas.onmousedown = myDown;
  canvas.onmouseup = myUp;
 }
 &amp;lt;/script&amp;gt;

&amp;lt;/head&amp;gt;
 &amp;lt;body onLoad=&quot;here();&quot;&amp;gt;

 &amp;lt;canvas id=&quot;canvas&quot; width=&quot;400&quot; height=&quot;300&quot;&amp;gt;
  This text is displayed if your browser does not support HTML5 Canvas.
 &amp;lt;/canvas&amp;gt;

 &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Así se vería si copias y pegas el codigo en un archivo html:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;section&gt;
    &lt;div&gt;
        &lt;canvas id=&quot;canvas5&quot; width=&quot;400&quot; height=&quot;300&quot;&gt;
         This text is displayed if your browser does not support HTML5 Canvas.
        &lt;/canvas&gt;
    &lt;/div&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
var canvas5;  
var ctx5;
var x5 = 75;
var y5 = 50;
var dx5 = 5;
var dy5 = 3;
var WIDTH5 = 400;
var HEIGHT5 = 300; 
var dragok = false;

function rect(x,y,w,h) {
  ctx5.beginPath();
  ctx5.rect(x,y,w,h);
  ctx5.closePath();
  ctx5.fill();
} 
 
function clear() {
  ctx5.clearRect(0, 0, WIDTH5, HEIGHT5);
}

function init() {
  canvas5 = document.getElementById(&quot;canvas5&quot;);
  ctx5 = canvas5.getContext(&quot;2d&quot;);
  return setInterval(draw5, 10);
}   

function draw5() {
  clear();
  ctx5.fillStyle = &quot;#FAF7F8&quot;;
  rect(0,0,WIDTH5,HEIGHT5);
  ctx5.fillStyle = &quot;#444444&quot;;
  rect(x5 - 15, y5 - 15, 30, 30);
}

function myMove(e){
 if (dragok){
  x5 = e.pageX - canvas5.offsetLeft;
  y5 = e.pageY - canvas5.offsetTop;
 }
}

function myDown(e){
 if (e.pageX &lt; x5 + 15 + canvas5.offsetLeft)
  if (e.pageX &gt; x5 - 15 + canvas5.offsetLeft)
    if (e.pageY &lt; y5 + 15 + canvas5.offsetTop)
      if (e.pageY &gt; y5 -15 + canvas5.offsetTop){
  x5 = e.pageX - canvas5.offsetLeft;
  y5 = e.pageY - canvas5.offsetTop;
  dragok = true;
  canvas5.onmousemove = myMove;
 }
}

function myUp(){
dragok = false;
canvas5.onmousemove = null;
}

init();
canvas5.onmousedown = myDown;
canvas5.onmouseup = myUp;
&lt;/script&gt;

&lt;/section&gt;

&lt;br /&gt;
&lt;b style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Referencias&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;span id=&quot;goog_1876800237&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1876800238&quot;&gt;&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://html5.litten.com/how-to-drag-and-drop-on-an-html5-canvas/&quot;&gt;http://html5.litten.com/how-to-drag-and-drop-on-an-html5-canvas/&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/8364534347892493915/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/03/drag-and-drop-con-javascript.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/8364534347892493915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/8364534347892493915'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/03/drag-and-drop-con-javascript.html' title='Drag and Drop Canvas'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4868728532474958700</id><published>2013-02-18T15:36:00.000-08:00</published><updated>2013-02-18T15:39:02.287-08:00</updated><title type='text'>2.- Arduino Mega ADK y Android Tutorial. &quot;Control Multiple de salidas&quot;</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, como parte del mismo proyecto que tuve que realizar, ahora se controlara la placa creada en esta entrada:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;http://hzsquare.blogspot.fr/2012/11/corrimiento-de-bit-controlado-por-pc-c.html&quot;&gt;http://hzsquare.blogspot.fr/2012/11/corrimiento-de-bit-controlado-por-pc-c.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;El propósito a alcanzar es controlar la placa por medio de una interfaz hecha completamente para Android por medio de USB usando un Arduino Mega ADK.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Imagen de muestra:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsw-GVh-5vEykBPZm75vh2W9YjjOJOBQlOirPu14KhvV2jRQjeiBCUpzt3Otg5-4Rt_DyzMuU_EBpMb-6QzRQY-tr7KACDm4tSWznxqEAO8Ufza7A5gO1rCSxIqatTQ2vcsR-WG3b8OBTS/s1600/20130108_230512.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsw-GVh-5vEykBPZm75vh2W9YjjOJOBQlOirPu14KhvV2jRQjeiBCUpzt3Otg5-4Rt_DyzMuU_EBpMb-6QzRQY-tr7KACDm4tSWznxqEAO8Ufza7A5gO1rCSxIqatTQ2vcsR-WG3b8OBTS/s320/20130108_230512.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Imagen de la plaza hecha&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHamV743U5LcYsuq9suv82tRB6MgoHHqmD-YzOnqhUul06ehNw9FKdM8FGO5kiL1USn94hXG_tcimQoj4NRqV_QWb1aoMKXRPVzIoB16wGPS_78p66jVh7bAyxwqoo5EefkkiJwr5pZQC9/s1600/Completo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHamV743U5LcYsuq9suv82tRB6MgoHHqmD-YzOnqhUul06ehNw9FKdM8FGO5kiL1USn94hXG_tcimQoj4NRqV_QWb1aoMKXRPVzIoB16wGPS_78p66jVh7bAyxwqoo5EefkkiJwr5pZQC9/s320/Completo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquematico de la placa, en lugar de la PC ahora tendremos un dispositivo Android, los pines tambien cambian&lt;br /&gt;
solo hay que ver el .ino del Arduino para saber&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un video de muestra:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/82VTR6_uO1k/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/82VTR6_uO1k?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/82VTR6_uO1k?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Proyecto para Eclipse (ADT): &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Arduino_ADK_y_Android/Corrimiento1/ERDF_SmartGrid.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Codigo de Arduino: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Arduino_ADK_y_Android/Corrimiento1/software_Arduino_Mega_ADK.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;NOTA: Recordar que para poder compilar el codigo de Android se necesitan ciertas librerias especiales, checa &lt;a href=&quot;http://hzsquare.blogspot.fr/2012/12/1-arduino-mega-adk-y-android-tutorial.html&quot;&gt;aqui&lt;/a&gt; para obtenerlas.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4868728532474958700/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2013/02/2-arduino-mega-adk-y-android-tutorial.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4868728532474958700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4868728532474958700'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2013/02/2-arduino-mega-adk-y-android-tutorial.html' title='2.- Arduino Mega ADK y Android Tutorial. &quot;Control Multiple de salidas&quot;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsw-GVh-5vEykBPZm75vh2W9YjjOJOBQlOirPu14KhvV2jRQjeiBCUpzt3Otg5-4Rt_DyzMuU_EBpMb-6QzRQY-tr7KACDm4tSWznxqEAO8Ufza7A5gO1rCSxIqatTQ2vcsR-WG3b8OBTS/s72-c/20130108_230512.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-1073049233394445023</id><published>2012-12-15T15:07:00.000-08:00</published><updated>2012-12-16T01:15:19.946-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>SitePlaye y Arduino. Hola Mundo por Puerto Serie</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, antes que nada, hola a todos!.... Bah, pura palabrería, vamos directo a lo que entraste a esta página...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SitePlayer, si si, es el Wervidor Web mas pequeño del mundo, si bla bla... más info &lt;a href=&quot;http://netmedia.com/siteplayer/&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, un modulo de estos no nos sirve de mucho si no poseemos algo que procese datos de mejor manera, así que comunicaremos el &lt;b&gt;SitePlayer &lt;/b&gt;con un &lt;b&gt;Arduino &lt;/b&gt;y al Arduino con nuestra &lt;b&gt;PC&lt;/b&gt;, ambos por medio del &lt;b&gt;Puerto UART Serial&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;NOTA:&lt;/b&gt;&amp;nbsp;Carga el SitePlayer con la pagina de ejemplo que viene en el software de desarrollo (&lt;b&gt;SiteLinker&lt;/b&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Material:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Arduino &lt;/b&gt;(El que sea que posea dos puertos Serie Ejemplo: &lt;b&gt;Mega, Due&lt;/b&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para este caso yo estoy usando un &lt;b&gt;&lt;a href=&quot;http://www.digilentinc.com/Products/Detail.cfm?Prod=CHIPKIT-MAX32&quot;&gt;chipKit Max32&lt;/a&gt;&lt;/b&gt;, que en pocas palabras es lo mismo que un Mega pero con mayor velocidad de reloj =D.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://netmedia.com/siteplayer/webserver/index.html&quot;&gt;SitePlayer completo&lt;/a&gt;&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Router &lt;/b&gt;(o LAN a la que conectarse, o en su defecto un cable &lt;b&gt;CrossOver &lt;/b&gt;para conectar el SitePlayer directo al PC)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Esquemático:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7lMYpiAAR6xiudcJgqWSvPSTBMt2mqHXfLZcVIiw5K13AbZwBdjauyp9dk1-I89EwhFR4Kd5JCSQUbuxGzU1fAEs-gOwz8idVP42jsWZ7fVhox3PESIFKWo0wDPCO1RGuYdHu4R81FzKl/s1600/SitePlayer_Arduino_Serial.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7lMYpiAAR6xiudcJgqWSvPSTBMt2mqHXfLZcVIiw5K13AbZwBdjauyp9dk1-I89EwhFR4Kd5JCSQUbuxGzU1fAEs-gOwz8idVP42jsWZ7fVhox3PESIFKWo0wDPCO1RGuYdHu4R81FzKl/s320/SitePlayer_Arduino_Serial.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquemático&amp;nbsp;en Vivo&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/SitePlayer_Arduino_Prueba_Serial/SitePlayer_Arduino_Serial.pdf/download&quot;&gt;pdf&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/SitePlayer_Arduino_Prueba_Serial/SitePlayer_Arduino_Serial.pdf/download&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7dSSGxGnB2PJC6Ph0nRrcqGnGOQ8WTJculfAbQv3Jb5HKacwjJ8tFOxFjHYLkzCMo1Z6hFmYRESzPRF_vvLV1EE6P5ot6sEVs792Oxgh1tgqLx2GTLTrLOC1pywPCIMsRVosztsoUdQb6/s1600/SitePlayer_Arduino_Serial2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7dSSGxGnB2PJC6Ph0nRrcqGnGOQ8WTJculfAbQv3Jb5HKacwjJ8tFOxFjHYLkzCMo1Z6hFmYRESzPRF_vvLV1EE6P5ot6sEVs792Oxgh1tgqLx2GTLTrLOC1pywPCIMsRVosztsoUdQb6/s320/SitePlayer_Arduino_Serial2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquemático&amp;nbsp;con mas rollo.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/SitePlayer_Arduino_Prueba_Serial/SitePlayer_Arduino_Serial2.pdf/download&quot;&gt;pdf&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Código de Arduino:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(115200);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial1&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(9600);  
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;loop&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial1&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;available&lt;/span&gt;())
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;write&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial1&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;read&lt;/span&gt;()); 
&amp;nbsp;&amp;nbsp;}
}

&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Imágenes de Muestra:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXnprxn4uSoMji0go2Ze4mXIJOBeWUntdhVjHWXUrS4Vw5MQkZAMoSjndgP6afJ767V0OjndnJP75r9jPtEbINNo-eQK0f5dae0gm5YSTkWgjYrlilbLh00hDyp_jQopECdGcvtMKlhq1L/s1600/sitePlayer_Arduino_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXnprxn4uSoMji0go2Ze4mXIJOBeWUntdhVjHWXUrS4Vw5MQkZAMoSjndgP6afJ767V0OjndnJP75r9jPtEbINNo-eQK0f5dae0gm5YSTkWgjYrlilbLh00hDyp_jQopECdGcvtMKlhq1L/s320/sitePlayer_Arduino_1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Mostrando la Pagina del SitePlayer y la IDE del arduino (Modificada para chipKit MPIDE, no te asustes es lo mismo que Arduino IDE)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJ4WqSgAwPm5jRaAe6Vbig1AIIo9lxMmF5b8yQCUxEBeKk-t0CivqEy19LiqEjxWqAVnVEy6fn8QNtG4lZ8yb3By9DQMJ0T33jYRRRcSw-Iew60pl2g2zH_hHxolhGa1q20zu2bwbp3pR/s1600/sitePlayer_Arduino_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaJ4WqSgAwPm5jRaAe6Vbig1AIIo9lxMmF5b8yQCUxEBeKk-t0CivqEy19LiqEjxWqAVnVEy6fn8QNtG4lZ8yb3By9DQMJ0T33jYRRRcSw-Iew60pl2g2zH_hHxolhGa1q20zu2bwbp3pR/s320/sitePlayer_Arduino_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Mostrando la Pagina del SitePlayer y el Serial Monitor después de enviar un &quot;Hola Mundo&quot;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjImPpsTYDyY-N1OGmnPFUDN2Aaq-LvwEjCLOWTMgXiXIdFnrDrpSZZNRMnlcLl1xQNwvhshJiQ7W0wNeCjYSBSeN_J8jYFzqeY10H55hv_RQ4NIfylkRcqyLZIxixrtZGeg6WKgxpJn9Aj/s1600/20121216_001451.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjImPpsTYDyY-N1OGmnPFUDN2Aaq-LvwEjCLOWTMgXiXIdFnrDrpSZZNRMnlcLl1xQNwvhshJiQ7W0wNeCjYSBSeN_J8jYFzqeY10H55hv_RQ4NIfylkRcqyLZIxixrtZGeg6WKgxpJn9Aj/s320/20121216_001451.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Estos son mis cacharros&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, eso fue todo. A seguir desarrollando!!!&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/1073049233394445023/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/12/siteplaye-y-arduino-hola-mundo-por.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1073049233394445023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/1073049233394445023'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/12/siteplaye-y-arduino-hola-mundo-por.html' title='SitePlaye y Arduino. Hola Mundo por Puerto Serie'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7lMYpiAAR6xiudcJgqWSvPSTBMt2mqHXfLZcVIiw5K13AbZwBdjauyp9dk1-I89EwhFR4Kd5JCSQUbuxGzU1fAEs-gOwz8idVP42jsWZ7fVhox3PESIFKWo0wDPCO1RGuYdHu4R81FzKl/s72-c/SitePlayer_Arduino_Serial.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-249143900360976025</id><published>2012-12-09T01:33:00.001-08:00</published><updated>2013-12-31T08:59:34.521-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>1.- Arduino Mega ADK y Android Tutorial &quot;Como Comenzar&quot;</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Hello World Arduino Mega ADK y Android&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esta entrada está desactualizada, para ver la información más reciente favor de ver mi nueva wiki:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://code.google.com/p/proyect-general-es/wiki/ArduinoADK_Android&quot;&gt;https://code.google.com/p/proyect-general-es/wiki/ArduinoADK_Android&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Enciende y apaga un led (led pin 13) de tu Arduino Mega ADK por medio de un dispositivo Android.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Que rollo!!,, compraste un Arduino Mega ADK pensando que sería fácil programar algo, que en media hora estarías controlando ya la placa por medio de tu celular o de tu tablet?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ooo decepción!!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si eres nuevo en Android y en Arduino a la vez, esto si que es una jalada, pero bueno para eso está hecho este tutorial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La página de Google ADK es bonita y explicativa? O claro que lo és (para una persona que llevo mínimo unos 5 años trabajando en este rollo), pero si queremos comenzar no nos sirve, bueno, al menos hasta que nos motivemos viendo que hicimos algo bien, ya de allí despegamos solos.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;Material:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un Arduino Mega ADK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un dispositivo Android (tu celular!!!!)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Los cables para conectar =P&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Vista&amp;nbsp;preliminar&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2jZPE2wIs9D4pnkZe7FqwXK9zxCwpnJgpfGhK5R-zPFKPTXqSWvT7hj3A0KeePGXyM_1p_uGDKcfLI4FVJE9s6MN4J85MMktAQPHRPyhgBi8Qhb801DIb7RnA8o6fJq-kuDjtJPZTDRg/s1600/IMAG0004.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2jZPE2wIs9D4pnkZe7FqwXK9zxCwpnJgpfGhK5R-zPFKPTXqSWvT7hj3A0KeePGXyM_1p_uGDKcfLI4FVJE9s6MN4J85MMktAQPHRPyhgBi8Qhb801DIb7RnA8o6fJq-kuDjtJPZTDRg/s320/IMAG0004.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Y así se supone debe quedar todo&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWS2FfVJLYNpU8V5UaYtFaNcsoR4v0FVtCF8ODJzzDrjl3hkkkcA8m2h2hkMg2iTAIAMff-4sR4np62rDIp9O4vBu0S0pXaYf6Y3P7n4Duy2W-QbXegAAdm3XiKOgtlIQ_dgj5EP_e0p66/s1600/IMAG0006.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWS2FfVJLYNpU8V5UaYtFaNcsoR4v0FVtCF8ODJzzDrjl3hkkkcA8m2h2hkMg2iTAIAMff-4sR4np62rDIp9O4vBu0S0pXaYf6Y3P7n4Duy2W-QbXegAAdm3XiKOgtlIQ_dgj5EP_e0p66/s320/IMAG0006.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sip, así mero&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Software Necesario&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;IDE de Arduino&lt;/b&gt; (mínimo la &lt;b&gt;1.0.2&lt;/b&gt;)&amp;nbsp;la cual incluye ya las librerias necesarias (&lt;b&gt;Max3421e.h&lt;/b&gt; y &lt;b&gt;Usb.h&lt;/b&gt;). &lt;a href=&quot;http://arduino.cc/en/Main/Software&quot;&gt;link&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Obtener las librerías del ADK (&lt;a href=&quot;http://developer.android.com/tools/adk/adk2.html#dev&quot;&gt;Google Tuto&lt;/a&gt;) o si bien no deseas descargar todo el repositorio con &lt;b&gt;repo&lt;/b&gt;, aquí te coloco lo único necesario para este tutorial y más:&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Arduino_ADK_y_Android/android-accessories.rar/download&quot;&gt;&lt;b&gt;android_accessories_descarga&lt;/b&gt;&lt;/a&gt;. Debo aclarar que ese código viene directo del repositorio de google y no ha sido modificado.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Eclipse&lt;/b&gt;. Si ya tienes Eclipse instala bien el &lt;a href=&quot;http://developer.android.com/sdk/installing/installing-adt.html&quot;&gt;plugin&lt;/a&gt; para programar Android o si eres novato en esto recomiendo que descargues mejor el&amp;nbsp;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;ADT Bundle&lt;/a&gt; (Version de Eclipse ya lista), o si ya eres master en esto saltatelo LOL!!!.&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Debes tener las APIS de Google tal y como indica &lt;a href=&quot;https://developers.google.com/android/add-ons/google-apis/installing&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxancS1diq6Td1yEm89WXs8q22FUYkr4vxKsM-M6wnoB7_lb8_LclY9oqd7T4dbT2c9eQHqlWzfwOfwGtOMVEjWibDRVdYx7ezv6fPVR6mIf7gLDCBy8eJc4o6t7bnUvVLATECB2m3kQ5/s1600/2_APIS_Google.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxancS1diq6Td1yEm89WXs8q22FUYkr4vxKsM-M6wnoB7_lb8_LclY9oqd7T4dbT2c9eQHqlWzfwOfwGtOMVEjWibDRVdYx7ezv6fPVR6mIf7gLDCBy8eJc4o6t7bnUvVLATECB2m3kQ5/s320/2_APIS_Google.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;APIS de Google instaladas&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Comienza lo divertido.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Librearías para Arduino.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Del &lt;b&gt;repositorio&lt;/b&gt; que descargaste de Google copia las librerías necesarias al directorio de &lt;b&gt;librearías de Arduino IDE&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Copia los directorios:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;*&lt;i&gt;android-accesories/adk1/board/AndroidAccesory&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;*&lt;i&gt;android-accesories/adk1/board/USB_Host_Shield&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;.../arduino-1.0.2/libraries/&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Nuevo proyecto y APIS necesarias&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Crea un nuevo Android Application Project y ponle de nombre &lt;b&gt;ArduinoBlinkLED&lt;/b&gt;, haz clic en Next, Next, Finish hasta terminar.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCkccD7e7bbseLR42Zvv1r3ySIXevP_3loKJu8hFYFVe4oZ_YjviqmCvo6xGYKk8D1dhWytLIrv71_pzFDQwGvrb0QCl8iaVsOxe055AGQHuVqeWbd7FYwuKy6WSqk52pG-DXPZAo7h5Iq/s1600/1_new_project_android_arduino.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;274&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCkccD7e7bbseLR42Zvv1r3ySIXevP_3loKJu8hFYFVe4oZ_YjviqmCvo6xGYKk8D1dhWytLIrv71_pzFDQwGvrb0QCl8iaVsOxe055AGQHuVqeWbd7FYwuKy6WSqk52pG-DXPZAo7h5Iq/s320/1_new_project_android_arduino.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Nuevo Proyecto Android&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Deberías tener mínimo:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un layout principal llamado &lt;b&gt;activity_main.xml&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un archivo de actividad java principal llamado &lt;b&gt;MainActivity.java&lt;/b&gt; dentro del paquete &lt;b&gt;com.example.arduinoblinkled&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un archivo manifest llamado &lt;b&gt;AndroidManifest.xml&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Que bonito Código!!! Manos a la obra&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Así es como se verá tu Package Explorer en Eclipse:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wGrIaRihT96ZJB6G3b6BnYdJsVeEaWQwerG6EBKSzXTyWslZ5LOkj_i71rTG26xeFemZ5JCSm6giwX9UcfiWxInWr5ZhXhz8xnk37c-lvC-jcdehQTW6GJGJ4Y3OzAXIxNDIBQ9TYkGv/s1600/Package_manager_eclipse.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wGrIaRihT96ZJB6G3b6BnYdJsVeEaWQwerG6EBKSzXTyWslZ5LOkj_i71rTG26xeFemZ5JCSm6giwX9UcfiWxInWr5ZhXhz8xnk37c-lvC-jcdehQTW6GJGJ4Y3OzAXIxNDIBQ9TYkGv/s320/Package_manager_eclipse.jpg&quot; width=&quot;145&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;0&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Agrega &lt;/b&gt;las APIS de Google al proyecto.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clic derecho a la carpeta del proyecto, propiedades&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Resource/Android y selecciona Google APIs como Project Buil Target&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja0c8ZLK8MdcWX5DvDwmcqxSuIFLEPQxhWdIue_eoBBzTDBw_8rdxkuIdEOudeUQJI1n7ffzKWSQgRH-MRGsdbikJO1HZx22nRDKYFUC5h2Chyphenhyphenj-LOKiV-QGbomAYGbMbN7N1Nr_ojQMyH/s1600/3_Eclipse_agregando_google_apis.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja0c8ZLK8MdcWX5DvDwmcqxSuIFLEPQxhWdIue_eoBBzTDBw_8rdxkuIdEOudeUQJI1n7ffzKWSQgRH-MRGsdbikJO1HZx22nRDKYFUC5h2Chyphenhyphenj-LOKiV-QGbomAYGbMbN7N1Nr_ojQMyH/s320/3_Eclipse_agregando_google_apis.jpg&quot; width=&quot;297&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmfa5K-f_LAtdNbleETvYWwdjO91tDAhBySRWMTEo-BJE8-7cwWhXaNlxs4ccEZIwWASK2LFgJFEDbd85i6agF9cvEOPLrzlzmz6EaPwX_FdPFToZXckHW_uVTVa0Vd8tr08Q-zvjDKwbs/s1600/4_Eclipse_Google_APIS.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmfa5K-f_LAtdNbleETvYWwdjO91tDAhBySRWMTEo-BJE8-7cwWhXaNlxs4ccEZIwWASK2LFgJFEDbd85i6agF9cvEOPLrzlzmz6EaPwX_FdPFToZXckHW_uVTVa0Vd8tr08Q-zvjDKwbs/s320/4_Eclipse_Google_APIS.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Cambia &lt;/b&gt;el código de nuestro &lt;b&gt;activity_main.xml&lt;/b&gt; por este:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Archivo: layout/activity_main.xml:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: white; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 448.9pt;&quot; valign=&quot;top&quot; width=&quot;599&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;xml&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;RelativeLayout&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/relativeLayout1&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.72&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: #7f007f;&quot;&gt;xmlns:android&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ToggleButton&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ToggleButton&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/toggleButtonLED&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;500px&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;200px&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_centerVertical&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_centerHorizontal&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:textSize&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;50px&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:onClick&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;blinkLED&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;ToggleButton&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt;&quot;&gt;RelativeLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;2&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Crea &lt;/b&gt;una carpeta dentro de &quot;res&quot; llamada &lt;b&gt;xml &lt;/b&gt;y dentro de ella crea un nuevo archivo llamado &lt;b&gt;accessory_filter.xml&lt;/b&gt;, coloca el siguiente codigo en el archivo:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Archivo: xml/accessory_filter.xml:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: white; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 448.9pt;&quot; valign=&quot;top&quot; width=&quot;599&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;xml&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;resources&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;usb-accessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;manufacturer&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Manufacturer&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;model&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Model&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt;&quot;&gt;resources&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;3&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Modifica&lt;/b&gt; el código de &lt;b&gt;AndroidManifest.xml&lt;/b&gt; de tal manera que te quede algo parecido a esto:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Archivo: AndroidManifest.xml&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: white; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 448.9pt;&quot; valign=&quot;top&quot; width=&quot;599&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;xml&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;manifest&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;xmlns:android&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;package&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;com.example.arduinoblinkled&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:versionCode&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:versionName&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;u&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;uses-sdk&lt;/span&gt;&lt;/u&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:minSdkVersion&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;13&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:targetSdkVersion&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;16&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;application&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:allowBackup&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:icon&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@drawable/ic_launcher&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:label&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f007f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;android:theme&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;@style/AppTheme&quot;&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;activity&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;com.example.arduinoblinkled.MainActivity&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:label&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;intent-filter&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;action&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;android.intent.action.MAIN&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;category&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;intent-filter&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;intent-filter&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;action&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;android.hardware.usb.action.USB_ACCESSORY_ATTACHED&quot;&lt;/span&gt;&lt;/i&gt;
  &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;intent-filter&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;meta-data&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;android.hardware.usb.action.USB_ACCESSORY_ATTACHED&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:resource&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@xml/accessory_filter&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;activity&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;uses-library&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;com.android.future.usb.accessory&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;uses-library&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt;&quot;&gt;application&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10.0pt;&quot;&gt;manifest&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En este ultimo paso se declara que se usaran las librearías USB accessory y también se pide permiso de que cuando conectes el dispositivo al aparato android nuestra aplicación comience por default. Recuerda usar el &lt;b&gt;minSdkVersion&lt;/b&gt; adecuado a tus librerías, para estar seguro puedes verificar las referencias de google.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Referencias de google:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/guide/topics/connectivity/usb/accessory.html&quot;&gt;http://developer.android.com/guide/topics/connectivity/usb/accessory.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;4&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Cambia &lt;/b&gt;el codigo del archivo &lt;b&gt;MainActivity.java&lt;/b&gt; por este:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Archivo: com.example.arduinoblikled/MainActivity.java&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background: white; border-collapse: collapse; border: none; mso-background-themecolor: background1; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 448.9pt;&quot; valign=&quot;top&quot; width=&quot;599&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;package&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; com.example.arduinoblinkled;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; java.io.FileDescriptor;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; java.io.FileInputStream;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; java.io.FileOutputStream;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; java.io.IOException;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.app.Activity;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.app.PendingIntent;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.content.BroadcastReceiver;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.content.Context;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.content.Intent;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.content.IntentFilter;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.os.Bundle;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.os.ParcelFileDescriptor;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.util.Log;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.view.View;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; android.widget.ToggleButton;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; com.android.future.usb.UsbAccessory;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; com.android.future.usb.UsbManager;&lt;/span&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: FR;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;class&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; MainActivity &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;extends&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; Activity {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f5f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;// TAG is used to debug in Android &lt;u&gt;logcat&lt;/u&gt; console&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;static&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;final&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;ArduinoAccessory&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;static&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;final&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_PERMISSION&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;com.google.android.DemoKit.action.USB_PERMISSION&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; UsbManager &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  PendingIntent &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionIntent&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;boolean&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionRequestPending&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  ToggleButton &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;buttonLED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbAccessory &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParcelFileDescriptor &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mInputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileOutputStream &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mOutputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;final&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  BroadcastReceiver &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbReceiver&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; BroadcastReceiver() {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;background: silver; mso-highlight: silver;&quot;&gt;onReceive&lt;/span&gt;(Context
  context, Intent intent) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String action
  = intent.getAction();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_PERMISSION&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.equals(action)) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;synchronized&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbAccessory
  accessory = UsbManager.&lt;i&gt;getAccessory&lt;/i&gt;(intent);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  (intent.getBooleanExtra(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbManager.&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;EXTRA_PERMISSION_GRANTED&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;false&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;)) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openAccessory(accessory);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
  &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.&lt;i&gt;d&lt;/i&gt;(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;permission denied for accessory &quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +
  accessory);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionRequestPending&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;false&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (UsbManager.&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_ACCESSORY_DETACHED&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.equals(action)) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbAccessory
  accessory = UsbManager.&lt;i&gt;getAccessory&lt;/i&gt;(intent);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (accessory != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &amp;amp;&amp;amp;
  accessory.equals(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;)) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; closeAccessory();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  onCreate(Bundle savedInstanceState) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.onCreate(savedInstanceState);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; =
  UsbManager.&lt;i&gt;getInstance&lt;/i&gt;(&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionIntent&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = PendingIntent.&lt;i&gt;getBroadcast&lt;/i&gt;(&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, 0, &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; Intent(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_PERMISSION&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;), 0);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntentFilter filter
  = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; IntentFilter(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_PERMISSION&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter.addAction(UsbManager.&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ACTION_USB_ACCESSORY_DETACHED&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registerReceiver(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbReceiver&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, filter);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;s&gt;&lt;u&gt;getLastNonConfigurationInstance&lt;/u&gt;&lt;/s&gt;&lt;u&gt;()&lt;/u&gt;
  != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; =
  (UsbAccessory) &lt;s&gt;&lt;u&gt;getLastNonConfigurationInstance&lt;/u&gt;&lt;/s&gt;&lt;u&gt;()&lt;/u&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openAccessory(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;activity_main&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;buttonLED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; =
  (ToggleButton) findViewById(R.id.&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;toggleButtonLED&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; Object
  onRetainNonConfigurationInstance() {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;s&gt;&lt;u&gt;onRetainNonConfigurationInstance&lt;/u&gt;&lt;/s&gt;&lt;u&gt;()&lt;/u&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; onResume()
  {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.onResume();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mInputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &amp;amp;&amp;amp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mOutputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbAccessory[]
  accessories = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.getAccessoryList();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsbAccessory
  accessory = (accessories == &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; ? &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; : accessories[0]);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (accessory != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.hasPermission(accessory))
  {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openAccessory(accessory);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;synchronized&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbReceiver&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (!&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionRequestPending&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.requestPermission(accessory,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionIntent&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mPermissionRequestPending&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;true&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.&lt;i&gt;d&lt;/i&gt;(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;mAccessory is null&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; onPause() {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.onPause();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; closeAccessory();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #646464; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;@Override&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; onDestroy()
  {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unregisterReceiver(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbReceiver&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.onDestroy();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  openAccessory(UsbAccessory accessory) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mUsbManager&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.openAccessory(accessory);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; =
  accessory;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileDescriptor
  fd = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.getFileDescriptor();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mInputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; FileInputStream(fd);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mOutputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; FileOutputStream(fd);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.&lt;i&gt;d&lt;/i&gt;(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;accessory opened&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.&lt;i&gt;d&lt;/i&gt;(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;accessory open fail&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  closeAccessory() {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;try&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.close();&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;catch&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  (IOException e) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;} &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt;&quot;&gt;finally&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt;&quot;&gt;mFileDescriptor&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mAccessory&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  blinkLED(View v){&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;byte&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;[] buffer = &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;byte&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;[1];&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;buttonLED&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.isChecked())&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buffer[0]=(&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;byte&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;)0; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f5f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;// button says on, light is off&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buffer[0]=(&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;byte&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;)1; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3f7f5f; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;// button says off, light is on&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; (&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mOutputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; != &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;null&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;try&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mOutputStream&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;.write(buffer);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7f0055; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;catch&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
  (IOException e) {&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.&lt;i&gt;e&lt;/i&gt;(&lt;/span&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #0000c0; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;TAG&lt;/span&gt;&lt;/i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;write failed&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;, e);&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;4&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Carga &lt;/b&gt;el siguiente sketch a tu Arduino Mega ADK:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;sketch:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;____________________________________________________________&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#include&amp;nbsp;&amp;lt;Max3421e.h&amp;gt;
#include&amp;nbsp;&amp;lt;Usb.h&amp;gt;
#include&amp;nbsp;&amp;lt;AndroidAccessory.h&amp;gt;
#define&amp;nbsp;&amp;nbsp;LED_PIN&amp;nbsp;&amp;nbsp;13
AndroidAccessory&amp;nbsp;acc(&lt;span style=&quot;color: #006699;&quot;&gt;&quot;Manufacturer&quot;&lt;/span&gt;,
  &lt;span style=&quot;color: #006699;&quot;&gt;&quot;Model&quot;&lt;/span&gt;,
  &lt;span style=&quot;color: #006699;&quot;&gt;&quot;Description&quot;&lt;/span&gt;,
  &lt;span style=&quot;color: #006699;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;,
  &lt;span style=&quot;color: #006699;&quot;&gt;&quot;http://example.com&quot;&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;0000000012345678&quot;&lt;/span&gt;);
&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7e7e7e;&quot;&gt;// set communiation speed&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(115200);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;pinMode&lt;/span&gt;(LED_PIN, &lt;span style=&quot;color: #006699;&quot;&gt;OUTPUT&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;acc.powerOn();
}
&amp;nbsp;
&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;loop&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;byte&lt;/span&gt; msg[0];
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (acc.isConnected()) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; len = acc.&lt;span style=&quot;color: #cc6600;&quot;&gt;read&lt;/span&gt;(msg, sizeof(msg), 1); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;// read data into msg variable&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (len &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (msg[0] == 1) &lt;span style=&quot;color: #7e7e7e;&quot;&gt;// compare received data&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;digitalWrite&lt;/span&gt;(LED_PIN,&lt;span style=&quot;color: #006699;&quot;&gt;HIGH&lt;/span&gt;); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;// turn on light&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;else&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;digitalWrite&lt;/span&gt;(LED_PIN,&lt;span style=&quot;color: #006699;&quot;&gt;LOW&lt;/span&gt;); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;// turn off light&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;else&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;digitalWrite&lt;/span&gt;(LED_PIN , &lt;span style=&quot;color: #006699;&quot;&gt;LOW&lt;/span&gt;); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;// turn off light&lt;/span&gt;
}
&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;____________________________________________________________&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;5&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Carga &lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;la aplicación android a tu dispositivo androi (dígase celular, tableta...)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Conecta&lt;/b&gt; el Arduino a tu PC y abre un &lt;b&gt;SerialMonitor&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Conecta el dispositivo Android al Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Listo!!!!!!!!!!!&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Video de muestra&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/UNtYIi0pjOg?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Descargas:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Proyecto de eclipse &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Arduino_ADK_y_Android/ArduinoBlinkLED.rar/download&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Sketch arduino &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Arduino_ADK_y_Android/ArduinoBlinkLED_sketch.rar/download&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;Error Comun:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;error: WProgram.h: No such file or directory&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsRzCFj2hLhCAeJcxKrYxueJEngFm6s7SjM-8aJx33TsEhlmhVZlurETOBqOSChGacy_z_0ngx1vlrC4B8hLBOwDyzeS3KJTDxgyH3EshcL8q_aoo4oNiLatXk9_evvay_JEg1D9kQl8EM/s1600/WProgam.h_error.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsRzCFj2hLhCAeJcxKrYxueJEngFm6s7SjM-8aJx33TsEhlmhVZlurETOBqOSChGacy_z_0ngx1vlrC4B8hLBOwDyzeS3KJTDxgyH3EshcL8q_aoo4oNiLatXk9_evvay_JEg1D9kQl8EM/s320/WProgam.h_error.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si la IDE de Arduino te tira ese error es porque a partir de la versión 1.0.1 &lt;b&gt;WProgram.h&lt;/b&gt; que contiene declaraciones para la API de Arduino fue cambiada por &lt;b&gt;Arduino.h.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Parece que Arduino se le olvido mencionarle a Google que había cambiado su API, bueno este error se soluciona fácil basta con cambiar en todos los archivos que contengan ese error &lt;b&gt;WProgram.h&lt;/b&gt; por&lt;b&gt; Arduino.h&lt;/b&gt; y ya.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En nuestro caso solo debería ser en el archivo de librería&amp;nbsp;&lt;b&gt;AndroidAccessory.h&lt;/b&gt; como muestra el compilador.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span id=&quot;goog_144986593&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_144986594&quot;&gt;&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;Fuentes:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Especial agradecimiento a esta Web, todo el código presentado en esta entrada es de su propiedad, yo sólo me estoy encargando de colocar tips en español.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/&quot;&gt;http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Aquí encontré la solución del error:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;https://github.com/adafruit/DHT-sensor-library/issues/1&quot;&gt;https://github.com/adafruit/DHT-sensor-library/issues/1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;TAGS:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino Mega ADK Tutorial&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Android ADK Tutorial&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino y Android&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino ADK Tuto&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino Hellow World&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;How to Begin Tutorial&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WProgram.h error&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/249143900360976025/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/12/1-arduino-mega-adk-y-android-tutorial.html#comment-form' title='33 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/249143900360976025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/249143900360976025'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/12/1-arduino-mega-adk-y-android-tutorial.html' title='1.- Arduino Mega ADK y Android Tutorial &quot;Como Comenzar&quot;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2jZPE2wIs9D4pnkZe7FqwXK9zxCwpnJgpfGhK5R-zPFKPTXqSWvT7hj3A0KeePGXyM_1p_uGDKcfLI4FVJE9s6MN4J85MMktAQPHRPyhgBi8Qhb801DIb7RnA8o6fJq-kuDjtJPZTDRg/s72-c/IMAG0004.JPG" height="72" width="72"/><thr:total>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4913304124408244554</id><published>2012-11-11T10:45:00.001-08:00</published><updated>2012-12-08T17:39:15.987-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PROGRAMACION"/><title type='text'>Compilar Assembler x86 en Linux 64bits</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, acá en la universidad en la que estoy de intercambio estamos intentando aprender ensamblador para procesadores 8086, así es, lo básico de lo básico.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno, el primer pedo!!! Así es, el pedoo,, es que en las máquinas de la universidad, los trastos de la prehistoria corren Windows XP x86, joder. Y yo tengo sólo sistemas operativos x64.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, al rendirme de usar Tasm y Tlink en Windows 7 x64 decidí por usar mi siempre fiel Ubuntu x64.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Y los problemas como siempre, de compilación y de linkeo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pero basta de eso, aquí te pongo los pasos para que ejecutes un Hellow World en Linux x64.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Primero, el codigo de nuestro Hellow World:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;section .text

    global _start   ;must be declared for linker (ld)

_start:     ;tell linker entry point

  mov edx,len ;message length
 mov ecx,msg ;message to write
 mov ebx,1 ;file descriptor (stdout)
 mov eax,4 ;system call number (sys_write)
 int 0x80 ;call kernel

  mov eax,1 ;system call number (sys_exit)
 int 0x80 ;call kernel

section .data

msg db &#39;Hello, world!&#39;,0xa ;our dear string
len equ $ - msg   ;length of our dear string&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Descarga &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/ASM_Linux/hello.asm/download&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Descargamos YASM de &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/ASM_Linux/yasm_1.1.0-1_amd64.deb/download&quot;&gt;aqui&lt;/a&gt; o de su &lt;a href=&quot;http://yasm.tortall.net/Download.html&quot;&gt;web oficial&lt;/a&gt; e instalamos el .deb&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O para el &lt;b&gt;NASM&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;

&lt;pre class=&quot;brush: csharp&quot;&gt;
sudo apt-get install nasm
&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ahora, podemos usar dos compiladores. &lt;b&gt;NASM&lt;/b&gt; y &lt;b&gt;YASM&lt;/b&gt;. El segundo es una ampliación del primero, y es el que recomiendo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Compilamos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;yasm -f elf hello.asm
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Linkeamos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;


&lt;pre class=&quot;brush: csharp&quot;&gt;
ld -m elf_i386 -s -o hello hello.o
&lt;/pre&gt;

&lt;br /&gt;
&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ejecutamos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;

&lt;pre class=&quot;brush: csharp&quot;&gt;
./hello
&lt;/pre&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj1BGx4FU0PR2h5ZV_0PzZeFI7CA7cTkAUX5Of5wvmSvE79Ee6U6a6keNjQS8nRHOFFbJxQIHLMHCXH9lP12LViX-yPXXdtDFFeBrvJZdat2mOuC6gbCKjMmuEirELV-Tr0Ijjdry7_Blg/s1600/Assembly_Linux.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;159&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj1BGx4FU0PR2h5ZV_0PzZeFI7CA7cTkAUX5Of5wvmSvE79Ee6U6a6keNjQS8nRHOFFbJxQIHLMHCXH9lP12LViX-yPXXdtDFFeBrvJZdat2mOuC6gbCKjMmuEirELV-Tr0Ijjdry7_Blg/s320/Assembly_Linux.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Recuerda, si usas NASM en lugar de YASM solo tienes que compilar así, el linkeo es igual:&lt;/span&gt;&lt;br /&gt;

&lt;pre class=&quot;brush: csharp&quot;&gt;
nasm -f elf hello.asm
&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;TAGS:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;TLINK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;TASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;YASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;NASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Assembler 8086&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4913304124408244554/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/11/compilar-assembler-x86-en-linux-64bits.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4913304124408244554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4913304124408244554'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/11/compilar-assembler-x86-en-linux-64bits.html' title='Compilar Assembler x86 en Linux 64bits'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj1BGx4FU0PR2h5ZV_0PzZeFI7CA7cTkAUX5Of5wvmSvE79Ee6U6a6keNjQS8nRHOFFbJxQIHLMHCXH9lP12LViX-yPXXdtDFFeBrvJZdat2mOuC6gbCKjMmuEirELV-Tr0Ijjdry7_Blg/s72-c/Assembly_Linux.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-4841324629240374401</id><published>2012-11-10T14:38:00.000-08:00</published><updated>2012-11-11T05:14:35.470-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><title type='text'>Corrimiento de bit controlado por PC (C#) usando chipKit/Arduino y sn74ls164 </title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esta es una continuación de la última entrada:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://hzsquare.blogspot.fr/2012/10/control-de-parpadeo-de-led-con.html&quot;&gt;http://hzsquare.blogspot.fr/2012/10/control-de-parpadeo-de-led-con.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ahora por medio de ese parpadeo controlaremos el corrimiento de bits para hacer una bonita obra de arte.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Material:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;2 x sn74ls164&lt;/b&gt; ----&amp;gt; &quot;Corredor de bits&quot; Realmente es un Shift Registers, algo así como un covertidor Serie - Paralelo, pero el uso que le daremos es otro.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;3 x&amp;nbsp;8L01-05-111&lt;/b&gt; ------&amp;gt; Relay Reed Switch. Estos amigos nos ayudarán como interruptores, así podremos controlar con nuestro chipKit/Arduino voltajes mayores a los 5V usuales.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;chipKit o Arduino&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;19 Leds&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;3 Resistencias 330 ohms&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Descargas:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/chipKit_control_blink_y_digital_outputs.pde/download&quot;&gt;Sketch chipkit/Arduino&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/control_blink_y_digital_outputs.rar/download&quot;&gt;Solucion VS2010 C#&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/sn74ls164.pdf/download&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Datasheet&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sn74ls164&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/Relay_Reep_Switch.pdf/download&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Datasheet&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;8L01-05-111&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se realizará en dos partes, primero el corrimiento de bits, y después haremos un corrimiento doble colocando dos&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sn74ls164&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;en cascada y añadiendo los relay reed switch. &lt;u&gt;Para ambos casos ni la programación de la Interfaz ni el sketch del chipKit/Arduino cambian&lt;/u&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;___________________Simple corrimiento de bits_____________________________&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Aquí coloco el esquemático de las conexiones:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL2D2xmCj2fKXrjWfXVY4PbufZ2pGfTNZBD9EYJqKk-Z5I9f82zD9CbtVgdZFQ95XqIaFRNN2FYLtQ9k6KUJxDUqF4Uc3BBs_Q4GP8Dmxb7fFd3vAMcjf5xaWE8d_svtIY-v9CXFrq5yE5/s1600/Solo_Corrimiento.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL2D2xmCj2fKXrjWfXVY4PbufZ2pGfTNZBD9EYJqKk-Z5I9f82zD9CbtVgdZFQ95XqIaFRNN2FYLtQ9k6KUJxDUqF4Uc3BBs_Q4GP8Dmxb7fFd3vAMcjf5xaWE8d_svtIY-v9CXFrq5yE5/s320/Solo_Corrimiento.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/Solo_Corrimiento.pdf/download&quot;&gt;Esquemático pdf&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;El video de muestra, para que sepas que hacer:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/OOLnrZfYt8o?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;______________Corrimiento de bits en cascada y salidas digitales______________&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Aquí coloco el esquemático de las conexiones:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHamV743U5LcYsuq9suv82tRB6MgoHHqmD-YzOnqhUul06ehNw9FKdM8FGO5kiL1USn94hXG_tcimQoj4NRqV_QWb1aoMKXRPVzIoB16wGPS_78p66jVh7bAyxwqoo5EefkkiJwr5pZQC9/s1600/Completo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHamV743U5LcYsuq9suv82tRB6MgoHHqmD-YzOnqhUul06ehNw9FKdM8FGO5kiL1USn94hXG_tcimQoj4NRqV_QWb1aoMKXRPVzIoB16wGPS_78p66jVh7bAyxwqoo5EefkkiJwr5pZQC9/s320/Completo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control_Corrimiento_y_Salidas_Digitales/Completo.pdf/download&quot;&gt;Esquemático pdf&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Una imagen de muestra:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-I-g_IOEbIKh0PJUilu623M6VM4_2U_82vl-yY_mamHaU0CAuuJ2HNhUr3SjMD14n-EgpCG21FDZWh1bU009DZrFmJkyrzfU0-TmC6YKMQ8cuZTuHdBjkaFlFwOREOXCDChnZf_Yl8iyn/s1600/PRT+(4).jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-I-g_IOEbIKh0PJUilu623M6VM4_2U_82vl-yY_mamHaU0CAuuJ2HNhUr3SjMD14n-EgpCG21FDZWh1bU009DZrFmJkyrzfU0-TmC6YKMQ8cuZTuHdBjkaFlFwOREOXCDChnZf_Yl8iyn/s320/PRT+(4).jpg&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;De la Proto&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBkReM2xRxG7rva3hu-rTx0P4SzM5v-pCujX5g8LXhiIVsXoXmDh2Oom6fkXXrUe7UmFiUeYTsG4d6AbKFlSDRijng8grUypj9MNBUwLnowSS7Vf5ZDJFcVm4wNqMH-TPNvNJbcUVWRfkK/s1600/Aplicacion_chipKit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBkReM2xRxG7rva3hu-rTx0P4SzM5v-pCujX5g8LXhiIVsXoXmDh2Oom6fkXXrUe7UmFiUeYTsG4d6AbKFlSDRijng8grUypj9MNBUwLnowSS7Vf5ZDJFcVm4wNqMH-TPNvNJbcUVWRfkK/s320/Aplicacion_chipKit.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;De la aplicación en C#&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;El video de muestra, para que sepas que hacer:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/RJdmZrMhi0w?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; color: #b45f06; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;background-color: #eeeeee; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPIDE&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;chipKit&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;chipKit MAX32&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;C#&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Control de LED&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Control de Parpadeo&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Parpadeo sin retardo&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;blink without delay&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Corrimiento de bits&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: black; font-size: small; line-height: normal;&quot;&gt;sn74ls164&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/4841324629240374401/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/11/corrimiento-de-bit-controlado-por-pc-c.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4841324629240374401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/4841324629240374401'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/11/corrimiento-de-bit-controlado-por-pc-c.html' title='Corrimiento de bit controlado por PC (C#) usando chipKit/Arduino y sn74ls164 '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL2D2xmCj2fKXrjWfXVY4PbufZ2pGfTNZBD9EYJqKk-Z5I9f82zD9CbtVgdZFQ95XqIaFRNN2FYLtQ9k6KUJxDUqF4Uc3BBs_Q4GP8Dmxb7fFd3vAMcjf5xaWE8d_svtIY-v9CXFrq5yE5/s72-c/Solo_Corrimiento.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-5166264807190790619</id><published>2012-10-19T14:07:00.004-07:00</published><updated>2012-10-20T02:23:05.117-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TUTORIAL PIC MPLAB C"/><title type='text'>5.- Programa en C de CCS. Lee Puerto despliega valor en Display 7 segmentos</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, para esta práctica, se usará el compilador de PIC C de CCS, debido a que el MPASM me resulto muy engorroso, oo decepcion, así es. Lo que no pude hacer en dos días en MPLABX lo hice en 5 minutos en PIC C.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si tienes la IDE de programación de CCS la puedes conseguir &lt;a href=&quot;http://solo-headshots.blogspot.fr/2012/10/pic-c-ccs-pcwh.html&quot;&gt;aquí&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Aclaro que sólo con fines didácticos si en realidad deseas desarrollar con esto, recomiendo que la compres.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;He aquí también el Manual de referencia de CCS:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;* CCS Reference Manual&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Puedes descargarlo de la pagina oficial de CCS también.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Como funciona un Display de 7 Segmentos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Cabe aclarar que un displays de 7 segmentos no es otra cosa que leds arreglados de una forma bonita de tal suerte que al encender los leds correspondientes a la vez se dibuje un símbolo, número o letra.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Existen muchos tipos de displays, entre los de 7 segmentos también existen variaciones, por 7 segmentos nos referimos a 7 leds (quizá 8 si contamos los que poseen punto decimal en algunas versiones). Podemos encontrar generalmente dos tipos muy comunes,&amp;nbsp;clasificándolos&amp;nbsp;de acuerdo a su manera de uso, los de Anodo Comun y los de Cátodo común.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Una imagen vale mucho más:&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbGkVjOcWOD5-StvadTnoLCTooUBMJiaxXiFO2qIA2oAtc49cyjZTWJ3OsDuT2-TRnjzJae4p7z_wLizWqzkW2o-OnGvZqkJIte3H2X7RCguQ20-facs-bptPbp_M_69v0ACALMiRHfKF/s1600/sg_clock_display_conn.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbGkVjOcWOD5-StvadTnoLCTooUBMJiaxXiFO2qIA2oAtc49cyjZTWJ3OsDuT2-TRnjzJae4p7z_wLizWqzkW2o-OnGvZqkJIte3H2X7RCguQ20-facs-bptPbp_M_69v0ACALMiRHfKF/s320/sg_clock_display_conn.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Y aquí está la imagen que vale mucho más.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Podemos observar los leds, por tanto, observamos que los de Cátodo Común debemos conectar su pin común a tierra y mandando un voltaje necesario (un uno lógico) a su pin correspondiente haremos que se encienda el led, si encendemos los ciertos leds al mismo tiempo podremos formar números etc etc bla bla bla bla...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Lo contrario para ánodo común.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Preparando el terreno:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Primero hacemos una prueba sencilla, tomaremos el codigo de la práctica anterior y lo usaremos aquí, pero en lugar de tener simples leds, tendremos los displays de 7 segmentos, de acuerdo a la entrada que le demos al pic por medio del dipswitch serán las barras de los displays que se encenderan:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Esquemático Prueba:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzV1OuxeN1H57qEr3lyG7XNmr3tQ2jUUFB9lu9eU0islfCK_VzM0l79B3VqGq0ROu01gl4uk6wjJC8NpqTbYQvNQW2CiFFA36A4rZpRixV8EcVlm44TXGwFXYMnRMHzTcUrjVH-JBtSM_/s1600/leePuerto_despliegaDisplays.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzV1OuxeN1H57qEr3lyG7XNmr3tQ2jUUFB9lu9eU0islfCK_VzM0l79B3VqGq0ROu01gl4uk6wjJC8NpqTbYQvNQW2CiFFA36A4rZpRixV8EcVlm44TXGwFXYMnRMHzTcUrjVH-JBtSM_/s320/leePuerto_despliegaDisplays.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquemático&amp;nbsp;para la prueba. El display que esta en la parte inferior izquierda solo es &amp;nbsp;de prueba&lt;br /&gt;
para que se observe como conectar un cátodo común&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Codigo en Assembler (mpasm):&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Hazael Fernando Mojica García&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Villeurbanne, Francia&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;3&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;18/10/2012&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;4&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;GPL&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;5&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;6&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;p16f887.inc&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;7&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;8&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Definicion de variables&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;9&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Comienzo del programa&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;org&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;00&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Vector de Reset&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;clrw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Limpiamos el registro del acumulador W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;bsf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;STATUS&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;RP0&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;clrf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;TRISB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Declaramos como salida el Puerto B colocando en 0 todos sus pines&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;movlw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;0xFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Colocamos 11111111b en W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;TRISD&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;;Declaramos como entrada el Puerto D colocando el 1 todos sus pines&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;23&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;bcf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;STATUS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;RP0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;24&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;25&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Main&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;26&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;movfw&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;PORTD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;27&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;PORTB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;28&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Main&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;29&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt;&quot;&gt;end&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;30&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Código en C:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: c-sharp&quot;&gt;#include &amp;lt;16f887.h&amp;gt;
#fuses NOWDT                                                //Deshabilita Watchdog
//#fuses INTRC                                                //Cristal Interno RC
#fuses NOMCLR                                               //No Master Clear
#use delay(clock=4000000)                                   //Clock interno de 4MHZ


void main()
{
   int numeroDecimal[10];
   

   set_tris_d(0xFF);          //Puerto D como entrada, colocando 1 en cada Pin
   set_tris_b(0x00);          //Puerto B como salida, colocando 0 en cada pin
   set_tris_c(0x00);          //Puerto C como salida
   
   output_c(0xFF);
   
   while(1)
   {
      output_b(input_d());
      //output_b(0b11111110);
      delay_ms(100);
   }
}


&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Podemos observar en el codigo de arriba que lo unico que hacemos es tomar el valor de puerto D y ponerlo en el puerto B.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;Por medio de esto, podemos saber que barra del display se enciende y por tanto saber así que pines del pic es necesario colocar en 1 para formar cierto número.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Proyecto de prueba en&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;PIC C de CCS y esquematico Proteus:&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Tuto_PIC_Assembler_C_MPLABX/3_LeePuertoD_Despliega_en_Displays/Pruebas_de_displays_C.rar/download&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;aqui&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #741b47; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;*****____________________________________________________*********&lt;/b&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;PROYECTO COMPLETO&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Y bueno ahora viene el bueno, he aquí el &lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;proyecto completo&lt;/span&gt;&lt;/b&gt;:&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En este lo que se hace a grandes rasgos, es tomar el valor del puerto D, del mismo, se separa &amp;nbsp;ese numero en unidades, decenas y centenas, después se despliega en cada unos de los displays correspondientes cada valor colocando el valor en el puerto B y encendiendo el transistor correspondiente para llevar a tierra el común del display respectivo.&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En este sencillo programa desplegaremos en 3 displays de 7 segmentos&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;el numero correspondiente en decimal al introducido en binario al Puerto D&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;por medio del dip switch.&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para esto, usaremos algo conocido como barrido, es decir, debido a que solo tenemos&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;un puerto (Puerto B) para manejar los 3 dislpays encenderemos cada uno a la vez con el&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;numero correspondiente a tal velocidad que parecera que todos estan encendidos.&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para este propósito, contamos con un transistor que usamos como interruptor&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Cuando hay un cero lógico en la base del transistor no hay paso entre catodo y anodo (circuito abierto)&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Cuando hay un uno lógico en la base del transistor es cuando existe coducción entre catodo y anodo (circuito cerrado)&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Llevando el común de los displays de 7 segmento a tierra, cerrando el circuito y haciendo que enciendan&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esquemático:&lt;/b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;

&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNUvJ-_2FGLq2507sFSWBozQVMMl3sFyIe5bpCc9mG6omk3g0UyUfnMKj3nac_eTMiqdZ7Yf2xA4ndTXMwPCBVGcTHEghAnuiJZPsEbkS5aHh2Bbyf7uzIgPXUvfIxYWrqhc1615l3C7ua/s1600/leePuerto_Displays.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNUvJ-_2FGLq2507sFSWBozQVMMl3sFyIe5bpCc9mG6omk3g0UyUfnMKj3nac_eTMiqdZ7Yf2xA4ndTXMwPCBVGcTHEghAnuiJZPsEbkS5aHh2Bbyf7uzIgPXUvfIxYWrqhc1615l3C7ua/s320/leePuerto_Displays.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px;&quot;&gt;Esquematico Final&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Código C:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hay viene lo bueno ¬¬&lt;/span&gt;

&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;


&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: c-sharp&quot;&gt;/*
   Hazael Fernando Mojica García
   Villeurbanne, France, 19/10/2012
   GPL
*/

#include &amp;lt;16f887.h&amp;gt;
#fuses NOWDT                                                //Deshabilita Watchdog
//#fuses INTRC                                                //Cristal Interno RC
#fuses NOMCLR                                               //No Master Clear
#use delay(clock=4000000)                                   //Clock interno de 4MHZ

/*
   En este sencillo programa desplegaremos en 3 displays de 7 segmentos
   el numero correspondiente en decimal al introducido en binario al Puerto D
   por medio del dip switch.
   Para esto, usaremos algo conocido como barrido, es decir, debido a que solo tenemos
   un puerto (Puerto B) para manejar los 3 dislpays encenderemos cada uno a la vez con el
   numero correspondiente a tal velocidad que parecera que todos estan encendidos.
   Para este propósito, contamos con un transistor que usamos como interruptor
   Cuando hay un cero lógico en la base del transistor no hay paso entre catodo y anodo (circuito abierto)
   Cuando hay un uno lógico en la base del transistor es cuando existe coducción entre catodo y anodo (circuito cerrado)
   Llevando el común de los displays de 7 segmento a tierra, cerrando el circuito y haciendo que enciendan
*/

void main()
{
   int numeroDecimal[10];
   int c_unidades = 0b00000001;        //Cuando toque unidades encendemos solo RC0
   int c_decenas  = 0b00000010;        //Cuando toque decenas encendemos solo RC1
   int c_centenas = 0b00000100;        //Cuando toque centenas encendemos solo RC2
   int numeroObtenido = 0;
   int unidades = 0;
   int decenas = 0;
   int centenas = 0;
   
   numeroDecimal[0] = 0b11111110;      //Representacion del 0 en nuestro display de 7 segmentos
   numeroDecimal[1] = 0b00110000;      //Representacion del 1 en nuestro display de 7 segmentos
   numeroDecimal[2] = 0b01101101;      //Representacion del 2 en nuestro display de 7 segmentos
   numeroDecimal[3] = 0b01111001;
   numeroDecimal[4] = 0b00110011;
   numeroDecimal[5] = 0b01011011;
   numeroDecimal[6] = 0b01011111;
   numeroDecimal[7] = 0b01110001;
   numeroDecimal[8] = 0b11111111;
   numeroDecimal[9] = 0b11111011;
   

   set_tris_d(0xFF);                   //Puerto D como entrada, colocando 1 en cada Pin
   set_tris_b(0x00);                   //Puerto B como salida, colocando 0 en cada pin
   set_tris_c(0x00);                   //Puerto C como salida
   
   output_c(0xFF);
   
   while(1)
   {
      //Tomaremos en cuenta que deseamos representar el numero 255, 0b11111111, 0xFF
      
      numeroObtenido = input_d();                                       //Leemos el numero que deseamos representar en los displays
      centenas = numeroObtenido / 100;                                  //255/100 = 2.55 = 2
      decenas = (numeroObtenido - (centenas * 100)) / 10;               //(255 - (2*100))/10 = 5.5 = 5
      unidades = numeroObtenido - (centenas * 100) - (decenas * 10);    //255 - (2*100) - (5*10) = 5
      
      //Desplegamos el numero en los displays
      //Unidades
      output_c(c_unidades);
      output_b(numeroDecimal[unidades]);
      output_b(0x00);
      //Decenas
      output_c(c_decenas);
      output_b(numeroDecimal[decenas]);
      output_b(0x00);
      //Centenas
      output_c(c_centenas);
      output_b(numeroDecimal[centenas]);
      output_b(0x00);
   }
} 

&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Chan chan, se acabó&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Descargas Proyecto Final completo:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Proyecto final en PIC C y esquematico .DSN proteus: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Tuto_PIC_Assembler_C_MPLABX/3_LeePuertoD_Despliega_en_Displays/Final_C.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Leer puerto&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;PIC C CCS&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Encender leds&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Displays 7 segmentos&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Assembler&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPASM&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic C&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;CCS&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;XC8&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/5166264807190790619/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/5-programa-en-c-de-ccs-lee-puerto.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/5166264807190790619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/5166264807190790619'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/5-programa-en-c-de-ccs-lee-puerto.html' title='5.- Programa en C de CCS. Lee Puerto despliega valor en Display 7 segmentos'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbGkVjOcWOD5-StvadTnoLCTooUBMJiaxXiFO2qIA2oAtc49cyjZTWJ3OsDuT2-TRnjzJae4p7z_wLizWqzkW2o-OnGvZqkJIte3H2X7RCguQ20-facs-bptPbp_M_69v0ACALMiRHfKF/s72-c/sg_clock_display_conn.gif" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-2280787285178515013</id><published>2012-10-19T13:43:00.001-07:00</published><updated>2012-10-19T14:41:46.758-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TUTORIAL PIC MPLAB C"/><title type='text'>4.- Programa en MPASM. Lee puerto D y despliega valor en puerto B</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esta será otra práctica sencilla, vamos a leer un valor en binario por medio del puerto D y desplegaremos su valor en los leds del puerto B. Sería lo mismo que conectar el dip switch directo a los leds.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Esquemático:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN30Ew7AFqHCbN57wkf2FLjn_nZHSJV2AYjjKAeioneQBqiocaB7qX0S79jxM1Dm7MqF81NXplGuHxaUq-qA5qoMKiN97DNP9zf3ykevlCC_JM87AHZFFKYx7uMblNMNWIektJwECF83a3/s1600/leePuerto_despliegaLeds.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN30Ew7AFqHCbN57wkf2FLjn_nZHSJV2AYjjKAeioneQBqiocaB7qX0S79jxM1Dm7MqF81NXplGuHxaUq-qA5qoMKiN97DNP9zf3ykevlCC_JM87AHZFFKYx7uMblNMNWIektJwECF83a3/s320/leePuerto_despliegaLeds.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquemático&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Código en Assembler (mpasm):&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Hazael
Fernando Mojica García&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Villeurbanne, Francia&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;3&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;18/10/2012&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;4&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;GPL&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;5&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;6&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;p16f887.inc&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;7&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;8&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Definicion de variables&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;9&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Comienzo del programa&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;org&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; 00&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Vector de Reset&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;clrw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Limpiamos
el registro del acumulador W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;bsf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;STATUS&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;RP0&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;clrf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;TRISB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Declaramos como salida el Puerto B colocando en 0 todos sus pines&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movlw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; 0xFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Colocamos
11111111b en W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;TRISD&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Declaramos como entrada el Puerto D colocando el 1 todos sus pines&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;23&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;bcf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;STATUS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;RP0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;24&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;25&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Main&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;26&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movfw&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;PORTD&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;27&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;PORTB&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;28&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Main&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;29&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;end&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;30&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Descargas:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Diagrama en proteus y Proyecto de MPLABX: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Tuto_PIC_Assembler_C_MPLABX/2_LeePuerto_DespliegaLeds/2_Lee_Puerto.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Leer puerto&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Encender leds&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Assembler&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic C&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CCS&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;XC8&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/2280787285178515013/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/4-programa-en-mpasm-lee-puerto-d-y.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2280787285178515013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2280787285178515013'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/4-programa-en-mpasm-lee-puerto-d-y.html' title='4.- Programa en MPASM. Lee puerto D y despliega valor en puerto B'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN30Ew7AFqHCbN57wkf2FLjn_nZHSJV2AYjjKAeioneQBqiocaB7qX0S79jxM1Dm7MqF81NXplGuHxaUq-qA5qoMKiN97DNP9zf3ykevlCC_JM87AHZFFKYx7uMblNMNWIektJwECF83a3/s72-c/leePuerto_despliegaLeds.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-7360789815454766948</id><published>2012-10-19T13:29:00.002-07:00</published><updated>2012-10-19T13:57:18.383-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TUTORIAL PIC MPLAB C"/><title type='text'>3.- Primer programa de prueba. Contador de 8bits</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, comenzamos con un circuito sencillo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Lo que trataremos de realizar en esta ocasión es un &lt;b&gt;contador de 8 bits, &lt;/b&gt;es decir, un circuito que cuente de 0 a 255 (8 bits) en binario y muestre esa cuenta por medio de un arreglo de leds.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tenemos que poder ver esa cuenta, y sabemos que un Microcontrolador tiene una velocidad de 4MHz para este caso, por tanto, necesitamos que incremente su cuenta cada cierto tiempo para poder apreciar que demonios esta contando, así que, ocupamos un retardo de tiempo también.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Comenzamos por el circuito:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGspigJINajuI4RFG1DwqkEaJhyrstruOh2dUOI2Yq8cfJOaq7j5hMptwD6MvOUupJsyU5Mu-aVAoIrqWTybOMLCMU4DlnpYAxo1UUi18vHhZB4uDRJtT3C44MiwOclqG4F0NJ_gcsiXI6/s1600/1_Conteo_Leds.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGspigJINajuI4RFG1DwqkEaJhyrstruOh2dUOI2Yq8cfJOaq7j5hMptwD6MvOUupJsyU5Mu-aVAoIrqWTybOMLCMU4DlnpYAxo1UUi18vHhZB4uDRJtT3C44MiwOclqG4F0NJ_gcsiXI6/s320/1_Conteo_Leds.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquemático&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;El código en assembler para pic (mpasm):&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Hazael
Fernando Mojica García&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;2&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Villeurbanne, Francia&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;3&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;18/10/2012&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;4&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;GPL&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;5&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;6&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;p16f628.inc&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;7&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;8&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Definicion de variables&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;9&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;cblock&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; 0x20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Inicio
de la RAM disponible&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;b&gt;COMPTE:&lt;/b&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Variable de un byte&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;b&gt;VARDEL1:&lt;/b&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Variable de un byte&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;b&gt;VARDEL2:&lt;/b&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Variable de un byte&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;endc&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Comienza Programa&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;org&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; 00&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Vector de reset&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;clrw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Limpia
registro w (acumulador)&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;PORTB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Limpia registro PORTB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;23&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;bsf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;STATUS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;RP0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Set bit RP0 (5) del registro STATUS (Acceso
a bank 1)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;TRISB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Declaramos como salida el Puerto B colocando 0 en el&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;25&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;bcf&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;STATUS&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;RP0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Clear bit RP0(5) del registro de STATUS (Acceso a
bank 0)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;26&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;27&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;El bit RP0 (bit 5), junto con RP1 (bit 6), son para activar/desactivar
Lectura y Escritura&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;28&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Recordar siempre colocar a 1 el bit PR0 de STATUS antes de modificar el
modo (entrada/salida) de un puerto&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Y después, al acabar, colocarlo de nuevo en 0&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Init&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;32&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;clrf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;COMPTE&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Limpiamos la variable COMPTE&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;33&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;IncCompte&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;35&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;incf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;COMPTE&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;F&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Incrementamos
COMPTE y guardamos resultado en COMPTE, igual sería: incf COMPTE,1. En C dería
algo como COMPTE++ o COMPTE = COMPTE +1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;COMPTE&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Copiamos
el valor de la variable COMPTE al acumulador W&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;37&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009be1; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;PORTB&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Copiamos el valor del acumulador W al puerto B&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;38&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;call&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Delai&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Entramos a la función delai&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;39&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;IncCompte&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Regresamos a incrementar el contador, una vez que este se desborde, es
decir, sobrepase el byte, regresará a 0&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;41&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;La función, si es que podemos
llamarla función debido a que esto es assembler, de Delai, es crear un retardo
de tiempo de unos cauntos milisengudos&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;42&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;lo suficiente para ver cambiar los
leds&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;43&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Si observamos bien la estructura de
Delai, veremos que es algo así como un bucle for anidado dentro de otro.&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;44&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;Delai&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movlw&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; 0xFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Copiamos
una literal o constante al acumulador W, en este caso 0xFF&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;VARDEL2&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Copiamos el registro del acumulador W a VARDEL2&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;47&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;48&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;D0&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;49&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;movwf&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;VARDEL1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;D1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;52&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;decfsz&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;VARDEL1&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;F&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;53&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;D1&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;54&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;decfsz&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;VARDEL2&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;F&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;55&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;goto&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #99006b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;D0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;56&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00009b; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;58&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #009600; font-family: &amp;quot;Monospaced&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: ES-MX;&quot;&gt;;Fin del programa&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: #e9e8e2; background-position: initial initial; background-repeat: initial initial; font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;font-family: Monospaced, serif; font-size: 13.5pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ver mejor: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Tuto_PIC_Assembler_C_MPLABX/1_Contador_8bits/main.html/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;Descargas:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Proyecto completo (.DSN de proteus y proyecto de MPLABX): &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Tuto_PIC_Assembler_C_MPLABX/1_Contador_8bits/1_Conteo_Leds.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Contador de 8 bits&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Contador de un byte&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Assembler&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic C&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CCS&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;XC8&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/7360789815454766948/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/3-primer-programa-de-prueba-contador-de.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/7360789815454766948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/7360789815454766948'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/3-primer-programa-de-prueba-contador-de.html' title='3.- Primer programa de prueba. Contador de 8bits'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGspigJINajuI4RFG1DwqkEaJhyrstruOh2dUOI2Yq8cfJOaq7j5hMptwD6MvOUupJsyU5Mu-aVAoIrqWTybOMLCMU4DlnpYAxo1UUi18vHhZB4uDRJtT3C44MiwOclqG4F0NJ_gcsiXI6/s72-c/1_Conteo_Leds.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-2111522300286267488</id><published>2012-10-18T03:44:00.001-07:00</published><updated>2012-10-19T13:57:09.042-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TUTORIAL PIC MPLAB C"/><title type='text'>2.- Como crear un nuevo Proyecto en MPLABX y simular en Proteus</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, esto es un poco trivial, pero bueno, para no dejar tantas cosas al azar, vamos a ver como podemos crear un nuevo proyecto en &lt;b&gt;MPLABX&lt;/b&gt;. Por ahora me encuentro en &lt;b&gt;Windows&lt;/b&gt;, por tanto, los screenshots que coloque serán de windows, pero cabe decir que lo mismo aplica para &lt;b&gt;Linux &lt;/b&gt;y &lt;b&gt;Mac&lt;/b&gt;, son los mismos pasos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abrimos &lt;b&gt;MPLABX&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Menu File/ New Project&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En el &lt;b&gt;cuadro de diálogo de New Project&lt;/b&gt; seleccionar:&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Standalone Project, Next&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Seleccionamos el Pic que vamos a usar, Next (para la mayoría de los proyectos de este tutorial usaremos el PIC16f887)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Seleccionamos al herramienta para programar nuestro PIC, Next (para las dimensiones de este tutorial sólo será suficiente con el &lt;b&gt;simulador &lt;/b&gt;pero si posees un PICkit, puedes usarlo)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Seleccionamos nuestro compilador, Next (usaremos &lt;b&gt;mpasm&lt;/b&gt;, que es el ensamblador para PIC que provee Microchip, después usaremos XC8, pero por ahora todo será en ensamblador)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ponle nombre a tu proyecto, &lt;b&gt;Finish &lt;/b&gt;(el proyecto&amp;nbsp;debe quedar grabado por default en el directorio de proyectos de MPLABX, si no modificaste algo)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tenemos creado el proyecto ahora agregamos un nuevo archivo fuente&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clic derecho en la carpeta Source Files / New / Assembly File&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Colocamos el nombre de nuestro archivo y seleccionamos su extensión (.asm), Finish&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Programamos algo&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Compilamos (&quot;Build Project&quot;hacemos clic en la imagen del martillo o en&lt;b&gt; Menú Run / Build Project&lt;/b&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Cargamos el .hex en &lt;b&gt;Proteus&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Nuestro archivo .hex debe estar en &lt;b&gt;(Carpeta de proyectos de MPLABX)/Nombre_de_mi_Proyecto.X/dist/default/production&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En Windows sería algo como: C:\Users\Usuario\MPLABXProjects\MiProyecto.X\dist\default\production&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En Proteus doble clic en nuestro PIC y seleccionamos el archivo .hex que hemos creado&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Run&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Cuadro de diálogo New Project&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpDbuReN2bSwDPUMf4EmIUn4iVRD0OYGZqwU1z7eavgebkO7oybPWL0Eq17czUjjZ4L4ZtzHU5S5oc_iIFDgcjpulZK0h9tgyiJnXjsujLBAfoVOBvWlpbbNSlCRJrJ-SzZI0Kp8p6TtT_/s1600/Proyecto_Nuevo_MPLABX_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpDbuReN2bSwDPUMf4EmIUn4iVRD0OYGZqwU1z7eavgebkO7oybPWL0Eq17czUjjZ4L4ZtzHU5S5oc_iIFDgcjpulZK0h9tgyiJnXjsujLBAfoVOBvWlpbbNSlCRJrJ-SzZI0Kp8p6TtT_/s320/Proyecto_Nuevo_MPLABX_1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTEJbJvCgloLQYbAqElaGTNqcdemdVj8j1jjORuJbKXYlQX4Ao6x5i-fIaASgrHwB5Pc6Slfgrh1-lmGuIMi81iTOspe7NIrlnAvS8Rvye2bAysqel-IZaesHQRGJKjJwxKi6_k3Kg4ncT/s1600/Proyecto_Nuevo_MPLABX_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTEJbJvCgloLQYbAqElaGTNqcdemdVj8j1jjORuJbKXYlQX4Ao6x5i-fIaASgrHwB5Pc6Slfgrh1-lmGuIMi81iTOspe7NIrlnAvS8Rvye2bAysqel-IZaesHQRGJKjJwxKi6_k3Kg4ncT/s320/Proyecto_Nuevo_MPLABX_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEJM0QvLZPUh95PCTjtf1LzDhp28ntCzkmAkanTD4lfhWUDB2HWstDQQ7qlTHItmZENYB-Exa1ho_FgiUrNchYdDhbkyHYK5acavoqmOC8bGAotHD89XdxGyWud0VwjCdCOx_TlQ81k9uZ/s1600/Proyecto_Nuevo_MPLABX_3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEJM0QvLZPUh95PCTjtf1LzDhp28ntCzkmAkanTD4lfhWUDB2HWstDQQ7qlTHItmZENYB-Exa1ho_FgiUrNchYdDhbkyHYK5acavoqmOC8bGAotHD89XdxGyWud0VwjCdCOx_TlQ81k9uZ/s320/Proyecto_Nuevo_MPLABX_3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9bV8p_UOj-QEybiBdGck9CiHc-nsaHsMi1dwT1nznXmYWD3AiXac-YUlmH7SLdpVa7PZV4PFv_rnq5popX-mHyjaIoytmZFNq-sqbW8S45K-7a1V8m0CJXHC3e8DnUM97qLIKmS60A8iR/s1600/Proyecto_Nuevo_MPLABX_4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9bV8p_UOj-QEybiBdGck9CiHc-nsaHsMi1dwT1nznXmYWD3AiXac-YUlmH7SLdpVa7PZV4PFv_rnq5popX-mHyjaIoytmZFNq-sqbW8S45K-7a1V8m0CJXHC3e8DnUM97qLIKmS60A8iR/s320/Proyecto_Nuevo_MPLABX_4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9cY7rKTnhC2DOtaBss5GIw9mMKsBNtsXNohyUMpfn2KHbbr9_joUdtzSrf6DUQpL3if2VqgO8cxSGh_hOH6c-8oFYX2-4fwU-d9YJIFrWstP6-14Y0G_CvLZEu1BLJBsaYDKzf3yj0nl3/s1600/Proyecto_Nuevo_MPLABX_5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9cY7rKTnhC2DOtaBss5GIw9mMKsBNtsXNohyUMpfn2KHbbr9_joUdtzSrf6DUQpL3if2VqgO8cxSGh_hOH6c-8oFYX2-4fwU-d9YJIFrWstP6-14Y0G_CvLZEu1BLJBsaYDKzf3yj0nl3/s320/Proyecto_Nuevo_MPLABX_5.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.5&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheCJTMANgwwDgXgTZ_HPY3S5cLamJ4kw8aAiPA4l513c1_Tn9c7Poi9v578Ib-vRK1wiB82Bbh4lUYpt_B2743EPH8Au3xAtcgU6FmYRhMDCPqbJTfNAgLjA1Q1EBD-TThKDwQfIUDl1gM/s1600/Proyecto_Nuevo_MPLABX_6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheCJTMANgwwDgXgTZ_HPY3S5cLamJ4kw8aAiPA4l513c1_Tn9c7Poi9v578Ib-vRK1wiB82Bbh4lUYpt_B2743EPH8Au3xAtcgU6FmYRhMDCPqbJTfNAgLjA1Q1EBD-TThKDwQfIUDl1gM/s320/Proyecto_Nuevo_MPLABX_6.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.6&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Agregar nuevo archivo fuente&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ-9WoIwws7_eX2a9m_Wf1YkWBzt3PdPqqZFjzix-HpvR2dWOgVW2j9k-lUEePe1XkeNfXd_gV21MScz6moZ07fskVMSWgGwhn5DfZfTedQqQ7CmRoFQIdwhyphenhyphenCgyyHnEvUENk9pDkrvArq/s1600/New_Source_File_MPLABX_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ-9WoIwws7_eX2a9m_Wf1YkWBzt3PdPqqZFjzix-HpvR2dWOgVW2j9k-lUEePe1XkeNfXd_gV21MScz6moZ07fskVMSWgGwhn5DfZfTedQqQ7CmRoFQIdwhyphenhyphenCgyyHnEvUENk9pDkrvArq/s320/New_Source_File_MPLABX_1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;4.1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Kw588QEZ8R9SordpLjaAqX-RYwDhrQISWPTPw_n1iFwRwiT0tyhDBPoMhNVcV9rR5BOYxSTd2PyNxuen3mdqDHKNQ-OQnYVnC5rJN0na1w9bNES7fvXAxRRh4kV-Wk0pbF00i9UdY8Ed/s1600/New_Source_File_MPLABX_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Kw588QEZ8R9SordpLjaAqX-RYwDhrQISWPTPw_n1iFwRwiT0tyhDBPoMhNVcV9rR5BOYxSTd2PyNxuen3mdqDHKNQ-OQnYVnC5rJN0na1w9bNES7fvXAxRRh4kV-Wk0pbF00i9UdY8Ed/s320/New_Source_File_MPLABX_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;4.2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Programamos algo&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW3BT5PCoj5c2zPeFzJ6KlFT9pSgYxYMzc9IQ2pP2n7LIVlkRzS9fUlMQ4efTLdrK64tOtZSSEijTF0NQDV9BJ1quxgFmQ4TgVmsU_WRoa0wIF3HpsndLJYj3q3-3YVM4xtGgp-h-qxUdt/s1600/Programamos_algo_MPLABX.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW3BT5PCoj5c2zPeFzJ6KlFT9pSgYxYMzc9IQ2pP2n7LIVlkRzS9fUlMQ4efTLdrK64tOtZSSEijTF0NQDV9BJ1quxgFmQ4TgVmsU_WRoa0wIF3HpsndLJYj3q3-3YVM4xtGgp-h-qxUdt/s320/Programamos_algo_MPLABX.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;6&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Compilamos (Build)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsvSD9B9NUUrngJ_2ykoF4R58NWA9_gixdFltugKmMmKGTVFm2kwuicem0DyW069QInCbghis-PiMlw8GPJmpm0pbMd21nT2WrBqlaQXYjH7AP5gqNcGDC1_MDXbVJzynULRCTSQlpkxw/s1600/Build_Project_MPLABX.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsvSD9B9NUUrngJ_2ykoF4R58NWA9_gixdFltugKmMmKGTVFm2kwuicem0DyW069QInCbghis-PiMlw8GPJmpm0pbMd21nT2WrBqlaQXYjH7AP5gqNcGDC1_MDXbVJzynULRCTSQlpkxw/s320/Build_Project_MPLABX.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Cargamos a Proteus&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhimBHamiQnGRjeGDXZbYg4dB7Tu-xXYLb7PUCHPQKAenD-093EcgabDrvxKBlMX3as20G3VAzlbZDt5u9PCZQJ3hD12ZwPHntQOljuTzDzPaWI5ZNEIVuAXUgzmHRu8YmUXo2zmaQR7w6Z/s1600/proteus_pic.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhimBHamiQnGRjeGDXZbYg4dB7Tu-xXYLb7PUCHPQKAenD-093EcgabDrvxKBlMX3as20G3VAzlbZDt5u9PCZQJ3hD12ZwPHntQOljuTzDzPaWI5ZNEIVuAXUgzmHRu8YmUXo2zmaQR7w6Z/s320/proteus_pic.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;7.3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tutotiral MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Crear proyecto MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Assembler&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPASM&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPLABX&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pic C&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CCS&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;XC8&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/2111522300286267488/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/2-como-crear-un-nuevo-proyecto-en.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2111522300286267488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2111522300286267488'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/2-como-crear-un-nuevo-proyecto-en.html' title='2.- Como crear un nuevo Proyecto en MPLABX y simular en Proteus'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpDbuReN2bSwDPUMf4EmIUn4iVRD0OYGZqwU1z7eavgebkO7oybPWL0Eq17czUjjZ4L4ZtzHU5S5oc_iIFDgcjpulZK0h9tgyiJnXjsujLBAfoVOBvWlpbbNSlCRJrJ-SzZI0Kp8p6TtT_/s72-c/Proyecto_Nuevo_MPLABX_1.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-2362772815061078728</id><published>2012-10-14T04:22:00.000-07:00</published><updated>2012-10-14T04:39:26.991-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>Control de Parpadeo de LED con chipKit/Arduino y C#</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para este caso estamos usando una tarjeta chipKit MAX32 y la IDE de programación derivada de la de Arduini MPIDE.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Control del parpadeo del LED que está en paralelo con el pin 13 de nuestro Arduino o nuestro chipKit por medio de una aplicación hecha en C# .Net Framework 4.5.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Solo necesitamos:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Visual Studio 2010&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un chipKit cualsea o Arduino cualsea (que tenga en paralelo un Led en el pin 13, si no, tendran que conectar al mismo un led con una resistencia)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPIDE o Arduino IDE&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;DESCARGA&lt;/span&gt;&lt;/b&gt;: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Control%20Blink/control_Blink.rar/download&quot;&gt;aqui&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Dentro del comprimido .rar vienen dos directorios, uno contiene la solución (.sln) para Visual Studio 2010, en el otro viene el sketch para MPIDE o Arduino IDE en .pde.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Carga el sketch a tu Arduino o chipKit&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abre la solución y correla (Run)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Presiona Commencer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Presiona el boton de reset del Arduino o chipKit&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Controla por medio de la trackBar o insertando el Intervalo de parpadeo en la TextBox + Enter&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Una disculpa que varias cosas estén en Francés, igual lo modifican a su gusto.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Imagenes:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCrd6YTHbY_SBj0NAZ9ErN6aakYlu1yq_LtaqbXWI1Hjd97Ja3LHTBE46i1CC_6d8Tw0prdwp7agRCmEwPojP7_kB-oQPCj-utP7qcECa4tKMh-kXnCIuTRjPtbTP5tFqwJftu7WKKqPSo/s1600/control_Blink_CSharp.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCrd6YTHbY_SBj0NAZ9ErN6aakYlu1yq_LtaqbXWI1Hjd97Ja3LHTBE46i1CC_6d8Tw0prdwp7agRCmEwPojP7_kB-oQPCj-utP7qcECa4tKMh-kXnCIuTRjPtbTP5tFqwJftu7WKKqPSo/s320/control_Blink_CSharp.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Se observa el programa corriendo en modo Debug con VS2010&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFdHrcsMba6K2dMoWslcOlRmMjSZ_WqnGcqFf4ueV-dYBOe1tPAriW_ppaZWdqxbRtIBSsnja28pWNf3zegbbU6gFmhris6OIY54Q-hyoN1HRpQURp7FCl8_ZHJozavP3ykuLSusCNPtub/s1600/control_Blink_chioKit_MAX32.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFdHrcsMba6K2dMoWslcOlRmMjSZ_WqnGcqFf4ueV-dYBOe1tPAriW_ppaZWdqxbRtIBSsnja28pWNf3zegbbU6gFmhris6OIY54Q-hyoN1HRpQURp7FCl8_ZHJozavP3ykuLSusCNPtub/s320/control_Blink_chioKit_MAX32.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Solo ocupamos nuestra tarjeta chipKit o Arduino&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Video de muestra:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/G7GQ-PdkLBc?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Tags:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;MPIDE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;chipKit&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;chipKit MAX32&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;C#&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Control de LED&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Control de Parpadeo&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Parpadeo sin retardo&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;blink without delay&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/2362772815061078728/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/control-de-parpadeo-de-led-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2362772815061078728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2362772815061078728'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/control-de-parpadeo-de-led-con.html' title='Control de Parpadeo de LED con chipKit/Arduino y C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCrd6YTHbY_SBj0NAZ9ErN6aakYlu1yq_LtaqbXWI1Hjd97Ja3LHTBE46i1CC_6d8Tw0prdwp7agRCmEwPojP7_kB-oQPCj-utP7qcECa4tKMh-kXnCIuTRjPtbTP5tFqwJftu7WKKqPSo/s72-c/control_Blink_CSharp.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-2598105329731257588</id><published>2012-10-11T13:57:00.002-07:00</published><updated>2012-12-09T01:27:32.411-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>mpide (chipKit) en Ubuntu o kubuntu 64bits</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkTCveJaD06BUZ1is0qUAdM3wRq-OvbiSYQgoQeooj111ixhf-G9DJGr03BmIDpP2vRx8oaAm7CHr_FCfPqBQ6SHUf8L248LPyljQuLb8t4FXQNPBtChqEZcVwOlM_xwmnk59m4_7H1Kq/s1600/chipKIT-Max32.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkTCveJaD06BUZ1is0qUAdM3wRq-OvbiSYQgoQeooj111ixhf-G9DJGr03BmIDpP2vRx8oaAm7CHr_FCfPqBQ6SHUf8L248LPyljQuLb8t4FXQNPBtChqEZcVwOlM_xwmnk59m4_7H1Kq/s320/chipKIT-Max32.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A veces los sistemas de 64bits en Linux tienden ser una lata, una batlla constante en compatibilidad con los programas para 32bits.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;En este caso, queremos ejecutar mpide, la ide modificada de Arduino para las tarjetas de desarrollo chipKit en Kubuntu o Ubuntu de 64bits.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La parte mala de todo esto es que no es tan facil como solo ejecutar.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Antes que nada quiero agradecer a esta entrada en este blog que me ayudo mucho:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://colinharrington.net/blog/2011/08/running-mpide-chipkits-arduino-ide-remake-64bit-ubuntu/&quot;&gt;http://colinharrington.net/blog/2011/08/running-mpide-chipkits-arduino-ide-remake-64bit-ubuntu/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, primero, debemos tener instalada la IDE de Arduino, esto para facilitarnos la vida ya que cuando se instala la IDE de Arduino, se instalan todos los paquetes correspondietes, así que aplicamos el famoso:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sudo apt-get install arduino&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;después siguen los paquetes que hacen magia de 32bits en sistemas de 64bits:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abrimos el Gestor de paquetes. Muon Package Manager en Kubuntu o Synaptic Package Manager en Ubuntu&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Buscamos e instalamos:&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;libelf1&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(library to read and write ELF files)&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;libreadline6 y&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;libreadline6(i386)&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;GNU readline and history libraries, run-time libraries&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Y a programar chipkit usando codigo Arduino.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Saludos!!!!!!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tags:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;chipKit&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ubuntu 64bits&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ubuntu x64&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Kubuntu x64&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Problema Ubuntu 64 chipKit&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/2598105329731257588/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/mpide-chipkit-en-ubuntu-o-kubuntu-64bits.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2598105329731257588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/2598105329731257588'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/mpide-chipkit-en-ubuntu-o-kubuntu-64bits.html' title='mpide (chipKit) en Ubuntu o kubuntu 64bits'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkTCveJaD06BUZ1is0qUAdM3wRq-OvbiSYQgoQeooj111ixhf-G9DJGr03BmIDpP2vRx8oaAm7CHr_FCfPqBQ6SHUf8L248LPyljQuLb8t4FXQNPBtChqEZcVwOlM_xwmnk59m4_7H1Kq/s72-c/chipKIT-Max32.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3885996089176338758.post-6024159315655738973</id><published>2012-10-06T05:33:00.001-07:00</published><updated>2013-03-24T05:19:58.446-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arduino"/><category scheme="http://www.blogger.com/atom/ns#" term="MICROCONTROLADORES"/><title type='text'>Graficar entrada analogica (potenciometro) usando Arduino y C#</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, el pequeño proyecto que les traigo el día de hoy es de graficar la entrada analógica de nuestro Arduino, es decir, el Convertidor Analógico Digital.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Este proyecto lo presenté hace varios meses como una práctica de laboratorio en mi querídisima (ROFL) &amp;nbsp;facultad de mi Universidad, FIME UANL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Vamos a graficarlo en la PC usando una aplicación creada por mi mismo en C#.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bien, puedo resumir todo esto en unas cuantas etapas:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Armamos un circuito sencillo donde tengamos conectad a forma de &lt;a href=&quot;http://es.wikipedia.org/wiki/Divisor_de_tensi%C3%B3n&quot;&gt;divisor de voltaje &lt;/a&gt;nuestro potenciómetro, tu sabes man, una terminal de un extremo a voltaje, la otra a tierra y la terminal de enmedio a una de las entradas analogicas del Arduino.&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esto sencillamente para al momento de variar la resistencia en el potenciometro, en la terminal de en medio varía el voltaje.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;NOTA: si tenemos un &lt;a href=&quot;http://es.wikipedia.org/wiki/Potenci%C3%B3metro&quot;&gt;potenciometro&lt;/a&gt; logaritmico (los &quot;normales jaja&quot;, los mas baratos) nuestra salida sera una función logaritmica (aah en serio!!) de la variación &amp;nbsp;de la resistencia, si requieres un poco de más &quot;precisión&quot; usa uno lineal.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Nuestro Arduino estará conectado a la PC por el USB&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Por medio de comunicación Serial mandaremos el resultado de la conversión Analógica - Digital cada vez que se requiera refrescar la gráfica&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La aplicación en la PC hecha en C# recibe los datos por Serial y refresca la gráfica.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Circuito&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaga9Hbb0BeIeUTQ9VzE_QNUyexF8MGXuPi-PdUK2SitBN8SmgVpIzvRKt_Uw1dj35uphRcgaeqV4LdQrvVBCiUdUneZOfUpINSwqyD_dNmOGuyrGEvOUBWQRks1r68zCPM5_qUIm6BDcW/s1600/prac2_2_P%C3%A1gina_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaga9Hbb0BeIeUTQ9VzE_QNUyexF8MGXuPi-PdUK2SitBN8SmgVpIzvRKt_Uw1dj35uphRcgaeqV4LdQrvVBCiUdUneZOfUpINSwqyD_dNmOGuyrGEvOUBWQRks1r68zCPM5_qUIm6BDcW/s320/prac2_2_P%C3%A1gina_1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Esquematico del circuito (NOTA: La terminal superior del potenciometro tambien esta conectada a 5V así como a AREF)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Imágenes&amp;nbsp;del Circuito&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM0Zeof6-mGQSvebpfXcf1fZGGjXCN68FAKcJ7eu80H5OUSh0kGopn_3Xei6F9uwRFNWb6i2evCuC7mvCdA_95et5fFWgNJmFZcXsnEJvm3mCJsth6C4dB6HBGGx-YK4TFq3Hz9ZG1_fEw/s1600/DSC00071.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM0Zeof6-mGQSvebpfXcf1fZGGjXCN68FAKcJ7eu80H5OUSh0kGopn_3Xei6F9uwRFNWb6i2evCuC7mvCdA_95et5fFWgNJmFZcXsnEJvm3mCJsth6C4dB6HBGGx-YK4TFq3Hz9ZG1_fEw/s320/DSC00071.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Usando un Arduino Mega&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuIveboqsqbmLcJ_2XfdMGq27Y6mSuJROaA4J-BtgCMXS8Ow9388HMpgo7XQMjjEuxXfOT5fR58dKBZHjh2Y7XI51-D47T2x1-0JefcyeqcOfeFJK08TvO8SwNpLQnunv58EQLTqeyyamc/s1600/DSC00069.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuIveboqsqbmLcJ_2XfdMGq27Y6mSuJROaA4J-BtgCMXS8Ow9388HMpgo7XQMjjEuxXfOT5fR58dKBZHjh2Y7XI51-D47T2x1-0JefcyeqcOfeFJK08TvO8SwNpLQnunv58EQLTqeyyamc/s320/DSC00069.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;1.- Usando un Arduino UNO&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD5ToxPEECawu4wNSXbCXa0CbUwjjTNuC7TJqSfjeoWTHXb64qm0KXbV5ke4-tvT0yy8IxsXglnbM64YOfmCAe2lEfVfPCi0TYA0eMt__KYQ9wGwG8WeiHC3tnzHkBGRy9PeuyRAqyDl9z/s1600/DSC00070.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD5ToxPEECawu4wNSXbCXa0CbUwjjTNuC7TJqSfjeoWTHXb64qm0KXbV5ke4-tvT0yy8IxsXglnbM64YOfmCAe2lEfVfPCi0TYA0eMt__KYQ9wGwG8WeiHC3tnzHkBGRy9PeuyRAqyDl9z/s320/DSC00070.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;2.- Usando un Arduino UNO&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Sketch de Arduino:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(115200);
&amp;nbsp;&amp;nbsp;analogReference(EXTERNAL);&lt;/pre&gt;
&lt;pre&gt;  Inicializa();
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;loop&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;Get_Instruccion();
}



&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; Get_Instruccion()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;available&lt;/span&gt;())
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;switch&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;read&lt;/span&gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&#39;r&#39;&lt;/span&gt;:&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Leer entrada analogica y mandar dato&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Analog_Read();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;break&lt;/span&gt;; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&#39;s&#39;&lt;/span&gt;: &lt;span style=&quot;color: #7e7e7e;&quot;&gt;//En espera a nueva inicializacion&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Salir();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;break&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; Salir()
{
&amp;nbsp;&amp;nbsp;Inicializa();&amp;nbsp;&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Loop en inicializa esperando nueva inicializacion&lt;/span&gt;
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; Analog_Read()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; resultado = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;resultado&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;analogRead&lt;/span&gt;(0); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Leemos el pin analogico 0 en 10bits&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;write&lt;/span&gt;(resultado / 4); &lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Mandamos el resultado en 8bits por Serial&lt;/span&gt;
}



&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Inicializamos&amp;nbsp;la&amp;nbsp;comunicacion&amp;nbsp;serial&lt;/span&gt;
&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Debe&amp;nbsp;mandar&amp;nbsp;una&amp;nbsp;secuencia&amp;nbsp;de&amp;nbsp;caracteres&amp;nbsp;tal&amp;nbsp;que&amp;nbsp;cumplan&amp;nbsp;con&amp;nbsp;el&amp;nbsp;criterio&amp;nbsp;&quot;square&quot;&lt;/span&gt;
&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; Inicializa()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; caracter[6];
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; i = 0;
&amp;nbsp;&amp;nbsp;caracter[0]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;s&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;caracter[1]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;q&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;caracter[2]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;u&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;caracter[3]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;a&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;caracter[4]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;r&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;caracter[5]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&#39;e&#39;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;while&lt;/span&gt;(1)
&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Mientras no se inicialize no sale del ciclo&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;available&lt;/span&gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;read&lt;/span&gt;() == caracter[i])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(i == 5)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Si es la ultima iteracion&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;write&lt;/span&gt;(&lt;span style=&quot;color: #006699;&quot;&gt;&#39;a&#39;&lt;/span&gt;);&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//escribimos caracter de confirmacion&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;break&lt;/span&gt;; &lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Salimos del while&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7e7e7e;&quot;&gt;//Termina While&lt;/span&gt;
}

&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Explicaré un poco el código para el Arduino:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Al inicio se encuentra la función &lt;b&gt;Inicializa()&lt;/b&gt;, esta se encarga de inicializar al Arduino, por así decirlo, lo que hace es esperar a recibir cierta cadena de caracteres por Serial, si esa cadena de caracteres es la correcta entonces se pondrá en marcha el programa principal confirmando esto por mandando un carácter de confirmación por Serial&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;La función principal &lt;b&gt;Get_Instruccion()&lt;/b&gt;&amp;nbsp;ejecuta cierta operación de acuerdo a lo recibido por Serial, si recibe &quot;r&quot; quiere decir que nuestra aplicación en C# esta requiriendo una lectura delo convertidor analógico digital, si recibe &quot;s&quot; es que se debe salir al al bucle de Inicialización.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Parte del Codigo para C#:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;border: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-element: para-border-div; padding: 1.0pt 4.0pt 1.0pt 4.0pt;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.ComponentModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Drawing;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.Windows.Forms;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;using&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; System.IO.Ports;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;namespace&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; Practica2_LabDSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form_Main&lt;/span&gt; : &lt;span style=&quot;color: #2b91af;&quot;&gt;Form&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Arduino&lt;/span&gt; arduino = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;[] muestreo;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;
Form_Main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; muestreo = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;[50];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; groupBox_PuertoSerial_Enter(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;
e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Form_Main_Load(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;
sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
serial_combo(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.comboBox_Puertos);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;for&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; 50; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//this.chart_Datos.Series[0].Points.AddY(i);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; muestreo[i] = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; button_Iniciar_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;
e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.comboBox_Puertos.Items.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.comboBox_Puertos.SelectedIndex &amp;gt; -1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;span style=&quot;color: green;&quot;&gt;//Si esta seleccionado algun puerto&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arduino = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Arduino&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.comboBox_Puertos.Text, 115200);&lt;span style=&quot;color: green;&quot;&gt;//Inicializamos arduino a 115200 bauds&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
arduino.Inicializa_Comunicacion();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.button_Iniciar.Enabled
= &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;this&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;.button_Stop.Enabled
= &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.Enabled = &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.Start();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: green;&quot;&gt;//Metodo que primero limpia y despues llena la
comboBox pasada como&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: green;&quot;&gt;//parametro con los puertos serie disponibles&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;private&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; serial_combo(&lt;span style=&quot;color: #2b91af;&quot;&gt;ComboBox&lt;/span&gt; combo)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; combo.Items.Clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[]
ports = &lt;span style=&quot;color: #2b91af;&quot;&gt;SerialPort&lt;/span&gt;.GetPortNames();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; port &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;
ports)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; combo.Items.Add(port);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Form_Main_FormClosed(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;FormClosedEventArgs&lt;/span&gt;
e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arduino.CierraPuerto();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; timer1_Tick(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;
sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get_Lectura();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; button_Stop_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;
sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;arduino.Stop();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arduino.CierraPuerto();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arduino = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;this&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;.button_Stop.Enabled
= &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.button_Iniciar.Enabled
= &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.timer.Stop();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.timer.Enabled
= &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arduino = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Get_Lectura()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
punto = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(arduino != &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; punto = arduino.GetLectura();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.textBox_caracter.Text
= &lt;span style=&quot;color: #2b91af;&quot;&gt;Convert&lt;/span&gt;.ToChar(punto).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActualizaGrafica(punto);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
ActualizaGrafica(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; punto)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecorreArray(punto);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.chart_Datos.Series[0].Points.Clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; 50; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.chart_Datos.Series[0].Points.AddY(muestreo[i]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; RecorreArray(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
punto)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;[]
muestreoAux = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;[50];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; 49; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; muestreoAux[i + 1] =
muestreo[i];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
muestreoAux[0] = punto;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;muestreo = muestreoAux;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; button_Refresh_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;
e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
serial_combo(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.comboBox_Puertos);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-alt: solid #548DD4 1.0pt; mso-border-shadow: yes; mso-border-themecolor: text2; mso-border-themetint: 153; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; padding: 0cm; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: ES-MX; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Este código en sí no ayuda en mucho, sólo se ve bonito =). Es mejor si descargas la solución completa (Tip, está mas abajo)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj94tTwjg6PL6B5LofYJ6v0gC3H-lZ6Uw8N_4BHPkqdSlOR52_tD0fYhN3lBXZwsJH9bWFEP-EK-myleK3VkbqJinRNMa-P6aCmlD5uXcdhZ0H463FnU8-sVgrhc0Ru6k6GP-R7fy1idagi/s1600/Aplicacion_C%23_Arduino_Graficadora.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj94tTwjg6PL6B5LofYJ6v0gC3H-lZ6Uw8N_4BHPkqdSlOR52_tD0fYhN3lBXZwsJH9bWFEP-EK-myleK3VkbqJinRNMa-P6aCmlD5uXcdhZ0H463FnU8-sVgrhc0Ru6k6GP-R7fy1idagi/s320/Aplicacion_C%23_Arduino_Graficadora.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Screenshot de la Interfaz en C# de la aplicación.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Básicamente lo que trata de hacer esta aplicación es por medio de un Timer, cada cierto tiempo una lectura analógica digital al arduino vía Serial, esta lectura la coloca en un array de hasta 50 muestras la cuál usa para construir la gráfica.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;***********************_________________________________________********************&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;DESCARGAS:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Solución de C# para Visual Studio 2010 y Sketch Arduino: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Graficadora%20con%20C%23%20y%20Arduino/Graficadora_Arduino_CS.rar/download&quot;&gt;aqui &lt;/a&gt;(compresión RAR)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esquematico: &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Graficadora%20con%20C%23%20y%20Arduino/prac2_2.pdf/download&quot;&gt;pdf&lt;/a&gt;, &lt;a href=&quot;http://sourceforge.net/projects/proyectgeneral/files/Graficadora%20con%20C%23%20y%20Arduino/prac2_2_P_gina_1.png/download&quot;&gt;png&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Si cargas el sketch al Arduino y Corres la solución de VS2010 todo debe funcionar perfecto, pero te coloco unas instrucciones para que lo hagas bien y sin dudas:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abre con Arduino el archivo&amp;nbsp;&lt;b&gt;prac2_2.ino&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Carga el Sketch al Arduino&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abre la solcion de VS2010 (&lt;b&gt;Practica2_LabDSM.sln&lt;/b&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Conecta el Arduino a la PC por USB&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Corre la aplicación de C# (&lt;b&gt;Run&lt;/b&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Una vez se esté ejecutando el programa selecciona el puerto serie que corresponde a tu arduino, si no aparece da click en &lt;b&gt;Refrescar&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Click en &lt;b&gt;Iniciar&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Esto mismo puede ser usado, para muchos propósitos, por ejemplo, si cambias el potenciómetro por un LM35 tendrás un graficador de Temperatura etc...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Usando un poco de imaginación y programación tendrás lo que necesitas!!&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tags:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Arduino y C#&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Graficar Arduino&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Graficar Convertidor Analogico Digital&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Analog Digital Converter Arduino with C#&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Graficar potenciometro con Arduino en la PC&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hzsquare.blogspot.com/feeds/6024159315655738973/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://hzsquare.blogspot.com/2012/10/graficar-entrada-analogica.html#comment-form' title='45 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6024159315655738973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3885996089176338758/posts/default/6024159315655738973'/><link rel='alternate' type='text/html' href='http://hzsquare.blogspot.com/2012/10/graficar-entrada-analogica.html' title='Graficar entrada analogica (potenciometro) usando Arduino y C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16757007454505575423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaga9Hbb0BeIeUTQ9VzE_QNUyexF8MGXuPi-PdUK2SitBN8SmgVpIzvRKt_Uw1dj35uphRcgaeqV4LdQrvVBCiUdUneZOfUpINSwqyD_dNmOGuyrGEvOUBWQRks1r68zCPM5_qUIm6BDcW/s72-c/prac2_2_P%C3%A1gina_1.png" height="72" width="72"/><thr:total>45</thr:total></entry></feed>