<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Códigos by Ángel Gabriel García Contreras</title>
      <link>https://padlet.com/a01751211/69zp461a1udi85se</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2021-07-20 16:16:36 UTC</pubDate>
      <lastBuildDate>2025-10-20 17:35:55 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Botón</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656105072</link>
         <description><![CDATA[<div>&nbsp;int button = 2;<br>void setup()<br>{<br>&nbsp; pinMode(button,INPUT_PULLUP);<br>}<br>void loop()<br>{<br>&nbsp; if (digitalRead(button) == LOW)<br>&nbsp; {<br><em>&nbsp; &nbsp; instructions</em><br>&nbsp; }<br>&nbsp; else <br>&nbsp; {<br> <em>&nbsp; &nbsp;instructions</em><br>&nbsp; }<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/9184edc9af37e8244ed959aa6a0902b0/btn.webp" />
         <pubDate>2021-07-20 16:17:09 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656105072</guid>
      </item>
      <item>
         <title>Led y Potenciómetro</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656106343</link>
         <description><![CDATA[<div>&nbsp;int led; &nbsp;<br>int pot; &nbsp;<br>int value_pot; &nbsp;<br>void setup()<br>{ &nbsp;<br>&nbsp; led = 3; &nbsp;<br>&nbsp; pot = A4; &nbsp;<br>&nbsp; value_pot = 5; &nbsp;<br>&nbsp; pinMode(led,OUTPUT); &nbsp;<br>&nbsp; pinMode(pot,INPUT); &nbsp;<br>&nbsp; Serial.begin(9300); &nbsp;<br>}<br>void loop()<br>{<br>&nbsp; digitalWrite(led,HIGH); &nbsp;<br>&nbsp; value_pot = analogRead(pot); &nbsp;<br>&nbsp; Serial.println(value_pot); &nbsp;<br>&nbsp; delay(value_pot); &nbsp;<br>&nbsp; digitalWrite(led,LOW); &nbsp;<br>&nbsp; delay(value_pot);<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/630a27dadc1be3f151d9083df2d9918e/pot.webp" />
         <pubDate>2021-07-20 16:18:29 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656106343</guid>
      </item>
      <item>
         <title>Led y Botón</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656106919</link>
         <description><![CDATA[<div>&nbsp;int leda = 4;&nbsp; //led amarillo<br>int button = 2;<br>void setup()<br>{<br>&nbsp; pinMode(button,INPUT_PULLUP);<br>&nbsp; pinMode(leda, OUTPUT);<br>}<br>void loop()<br>{<br>&nbsp; if (digitalRead(button) == LOW)<br>&nbsp; {<br>&nbsp; &nbsp; digitalWrite(leda, HIGH);<br>&nbsp; &nbsp; delay(1000);<br>&nbsp; }<br>&nbsp; else&nbsp;<br>&nbsp; {<br>&nbsp; &nbsp; digitalWrite(leda, LOW);<br>&nbsp; }<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/d0a8397da740c3218b8566f2f1039e94/ledy.webp" />
         <pubDate>2021-07-20 16:19:14 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656106919</guid>
      </item>
      <item>
         <title>Led RGB</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656107509</link>
         <description><![CDATA[<div>&nbsp;int ledred = 10;<br>int ledblue = 11;<br>int ledgreen = 12;<br><br>void setup()<br>{<br>&nbsp; pinMode(ledred, OUTPUT);<br>&nbsp; pinMode(ledblue, OUTPUT);<br>&nbsp; pinMode(ledgreen, OUTPUT);<br>}<br><br>void loop()<br>{<br>&nbsp; digitalWrite(ledred,255);<br>&nbsp; digitalWrite(ledblue,0);<br>&nbsp; digitalWrite(ledgreen,0);<br>&nbsp; delay(1000);<br>&nbsp; digitalWrite(ledred,0);<br>&nbsp; digitalWrite(ledblue,255);<br>&nbsp; digitalWrite(ledgreen,0);<br>&nbsp; delay(1000);<br>&nbsp; digitalWrite(ledred,0);<br>&nbsp; digitalWrite(ledblue,0);<br>&nbsp; digitalWrite(ledgreen,255);<br>&nbsp; delay(1000);<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/7804a4582d8e158d0f7d97fef9b873ad/Led_rgb.webp" />
         <pubDate>2021-07-20 16:19:52 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656107509</guid>
      </item>
      <item>
         <title>RGB combinaciones</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656118700</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/da96e12a31746a89f1d80fd3fc7d9aad/rgb.png" />
         <pubDate>2021-07-20 16:32:49 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1656118700</guid>
      </item>
      <item>
         <title>Switch</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661186520</link>
         <description><![CDATA[<div>&nbsp;void setup()<br>{<br>&nbsp; pinMode(3, OUTPUT);<br>}<br>void loop()<br>{<br>&nbsp; if (digitalRead(3) == 0)<br>&nbsp; {<br>&nbsp; &nbsp; <em>instructions</em><br>&nbsp; }<br>&nbsp; else<br>&nbsp; {<br>&nbsp; &nbsp; <em>instructions</em><br>&nbsp; }<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/0d09d7e9431624ec74d8fdb9e91ac761/Switch.webp" />
         <pubDate>2021-07-26 15:22:56 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661186520</guid>
      </item>
      <item>
         <title>PIR y Servomotor</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661187936</link>
         <description><![CDATA[<div>&nbsp;#include &lt;Servo.h&gt;<br>int PIR =8;<br>int statePIR;<br>Servo myMotor;<br>void setup()<br>{<br>&nbsp; pinMode(PIR, INPUT);<br>&nbsp; myMotor.attach(12);<br>&nbsp; myMotor.write(5);<br>}<br>void loop()<br>{<br>&nbsp; &nbsp; statePIR = digitalRead(PIR);<br>&nbsp; if (statePIR == HIGH)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; myMotor.write(175);<br>&nbsp; &nbsp; &nbsp; delay(5000);<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; else<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; myMotor.write(5);<br>&nbsp; &nbsp; }<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/725cc7741a62a27a09c6d63dfab1b604/PIR_Y_MOTOR.webp" />
         <pubDate>2021-07-26 15:25:00 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661187936</guid>
      </item>
      <item>
         <title>Servomotor</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661188438</link>
         <description><![CDATA[<div>&nbsp;#include &lt;Servo.h&gt;<br>Servo myMotor;  //(Nombre del motor)<br>void setup()<br>{<br>&nbsp; myMotor.attach(6);  //(Pin al que está conectado el motor)<br>&nbsp; myMotor.write(5);  //(Empieza en 5 grados)<br>&nbsp; delay(1000);<br>}<br>void loop()<br>{<br>&nbsp; myMotor.write(175);  //(Se mueve a 175 grados)<br>&nbsp; delay(1000);&nbsp; &nbsp; &nbsp;<br>&nbsp; myMotor.write(90);&nbsp; <br>&nbsp; delay(2000);&nbsp; &nbsp;<br>}&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-26 15:25:46 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661188438</guid>
      </item>
      <item>
         <title>Switch y Led</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661205900</link>
         <description><![CDATA[<div>void setup()<br>{<br>&nbsp; pinMode(3, OUTPUT);<br>&nbsp; pinMode(5, OUTPUT);<br>&nbsp; Serial.begin(9600);<br>}<br>void loop()<br>{<br>&nbsp; if (digitalRead(3) == 0)<br>&nbsp; {<br>&nbsp; &nbsp; digitalWrite(5,LOW);<br>&nbsp; }<br>&nbsp; else<br>&nbsp; {<br>&nbsp; &nbsp; digitalWrite(5,HIGH);<br>&nbsp; }<br>}</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/18cc4e430d2e2e3d5700ddd1eb27a917/Ledswitch.png" />
         <pubDate>2021-07-26 15:47:35 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1661205900</guid>
      </item>
      <item>
         <title>Sensor Ultrasónico</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662271780</link>
         <description><![CDATA[<div>&nbsp;float duration;<br>float distance;<br>int trig = 5; // connected to pin#5<br>int echo = 4; // connected to pin#4<br>void setup()<br>{<br>&nbsp; pinMode(trig, OUTPUT); //trig always is OUTPUT<br>&nbsp; pinMode(echo, INPUT);&nbsp; //echo always is INPUT<br>}<br>void loop()<br>{<br>&nbsp; digitalWrite(trig,LOW);&nbsp; // trig off<br>&nbsp; delay(1);<br>&nbsp; digitalWrite(trig,HIGH); // trig on<br>&nbsp; delay(100);<br>&nbsp; digitalWrite(trig,LOW);&nbsp; // trig off<br>&nbsp; duration = pulseIn(echo,HIGH); // echo on<br>&nbsp; distance = duration/58; // converts duration into distance in centimeters<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/61f35ebd9bc82ed3dfc1ff1a53dfa8d2/ultrasonic.webp" />
         <pubDate>2021-07-27 16:14:32 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662271780</guid>
      </item>
      <item>
         <title>Sensor de gas</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662279599</link>
         <description><![CDATA[<div>&nbsp;int sensorgas;<br>void setup()<br>{<br>&nbsp; Serial.begin(9600);<br>}<br>void loop()<br>{<br>&nbsp; sensorgas = analogRead(A1);<br>&nbsp;Serial.print("Valor del sensor de gas es: ");<br>&nbsp; Serial.println(sensorgas);<br>&nbsp; delay(2000);<br>}&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/e30fc7a7492de6406e4d2f1027e4e1c1/Gas.webp" />
         <pubDate>2021-07-27 16:24:53 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662279599</guid>
      </item>
      <item>
         <title>Neopixel (Ring)</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662295605</link>
         <description><![CDATA[<div>&nbsp;#include &lt;Adafruit_NeoPixel.h&gt;<br>Adafruit_NeoPixel Teacher = Adafruit_NeoPixel(12, 5, NEO_GRB + NEO_KHZ800);<br>void setup()<br>{<br>&nbsp; Teacher.begin();<br>}<br><br>void loop()<br>{<br>&nbsp; Teacher.setPixelColor(0,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(1,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(2,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(3,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(4,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(5,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(6,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(7,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(8,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(9,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(10,Teacher.Color(102,255,255));<br>&nbsp; Teacher.setPixelColor(11,Teacher.Color(102,255,255));<br>&nbsp; Teacher.show(); //Turn on the led<br>&nbsp; delay(300);<br>&nbsp; Teacher.clear();//Turn off the led<br>&nbsp; Teacher.show();<br>&nbsp; delay(300);<br>}&nbsp;<br><br><br><br>//(nombre).show(); muestra<br>//(nombre).clear(); borra todo</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/2523e9da720510c2c3755280c35e923e/Neopixel.webp" />
         <pubDate>2021-07-27 16:47:01 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1662295605</guid>
      </item>
      <item>
         <title>TONOS </title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664414575</link>
         <description><![CDATA[<div>float DO = 523.25;<br>float RE = 587.33;<br>float MI = 659.26;<br>float FA = 698.46;<br>float SOL = 783.99;<br>float LA = 880;<br>float TI = 987.77;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-29 22:22:18 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664414575</guid>
      </item>
      <item>
         <title>Buzzer (bocina)</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664414817</link>
         <description><![CDATA[<div>float DO = 523.25;<br>float RE = 587.33;<br>float MI = 659.26;<br>float FA = 698.46;<br>float SOL = 783.99;<br>float LA = 880;<br>float TI = 987.77;<br>int bocina = 9;<br><br><br>void setup()<br>{<br>&nbsp; pinMode(bocina,OUTPUT);<br>}<br><br>void loop()<br>{<br>&nbsp;tone(bocina,DO);<br>&nbsp;delay(200);<br>&nbsp;noTone(bocina);<br>&nbsp;tone(bocina,RE);<br>&nbsp;delay(100);<br>&nbsp;noTone(bocina);<br>&nbsp;tone(bocina,TI);<br>&nbsp;delay(100);<br>&nbsp;noTone(bocina);<br>&nbsp;tone(bocina,SOL);<br>&nbsp;delay(100);<br>&nbsp;noTone(bocina);&nbsp;<br>}</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/24b79b33432de44e9e1c366eaa53f882/uzzer.png" />
         <pubDate>2021-07-29 22:22:55 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664414817</guid>
      </item>
      <item>
         <title>Canciones arduino</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664426938</link>
         <description><![CDATA[<div>https://dragaosemchama.com/en/2019/02/songs-for-arduino/</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-07-29 22:56:40 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1664426938</guid>
      </item>
      <item>
         <title>Display LCD</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1668194004</link>
         <description><![CDATA[<div>#include &lt;LiquidCrystal.h&gt;<br>LiquidCrystal pantalla (12,11,5,4,3,2);<br><br><br><br>void setup()<br>{<br>&nbsp; pantalla.begin(16,2);<br>&nbsp;&nbsp;<br>}<br><br>void loop()<br>{<br>&nbsp; pantalla.setCursor(1,0);<br>&nbsp; pantalla.print("holaaaaaaa");<br>&nbsp; pantalla.setCursor(1,1);<br>&nbsp; pantalla.print("adioooooos");<br>&nbsp; delay(1000);<br>&nbsp; pantalla.clear();<br>&nbsp; delay(1000);<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 21:39:26 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1668194004</guid>
      </item>
      <item>
         <title>Temperatura</title>
         <author>a01751211</author>
         <link>https://padlet.com/a01751211/69zp461a1udi85se/wish/1668200690</link>
         <description><![CDATA[<div>int sensor = A4;<br>float temperatura1;<br>float temperaturafinal = 0;<br>float conversion;<br><br>void setup()<br>{<br>&nbsp; pinMode(A4, INPUT);<br>&nbsp; Serial.begin(9600);<br>}<br><br>void loop()<br>{<br>&nbsp; temperatura1 = analogRead(sensor);<br>&nbsp; conversion = (temperatura1 - 20) *3.04;<br>&nbsp; temperaturafinal = map(conversion,0,1023, -40,125);<br>&nbsp; Serial.print("La temperatura es ");<br>&nbsp; Serial.println(temperaturafinal);<br>&nbsp; delay(500);<br>&nbsp;&nbsp;<br>}</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/839036623/90de10d449f9ad75c5e10fbcceb678e7/temp.png" />
         <pubDate>2021-08-03 21:54:33 UTC</pubDate>
         <guid>https://padlet.com/a01751211/69zp461a1udi85se/wish/1668200690</guid>
      </item>
   </channel>
</rss>
