https://docs.google.com/forms/d/1xrR_UIfKV8GmGSVTCBG2zZ0c74qhHO95YfiJE7UasSU/viewfo
int led1 = 5; // Declaración de puertos donde están los LEDs int led2 = 4; int led3 = 3; int led4 = 2; int potenciometro = 1; // Definición de donde está conectado el pot int lectura; // Variable donde se almacenará el resultado ADC void setup() { pinMode (led1, OUTPUT); // Puertos
http://www.percomnet.com/new/ventanaresistencia.p
/* PRACTICA NUMERO SESIÓN 6 Y 7 27/04/2016*/ //DECLARACIÓN DE VARIABLES int led = 4; // VARIABLE LED PIN 4 int boton = 8; // VARIABLE BOTÓN PIN 8 int estado = 0; // AGREGAMOS UNA VARIABLE CON VALOR 0 void setup() { pinMode (8, INPUT); // DECLARAMOS COMO ENTRADA BOTON
Practica Servo #include <Servo.h> // Libreria ServomotoresServo miServo;int angulo = 90;void setup(){ miServo.attach(9); Serial.begin(9600);}void loop(){ unsigned char comando=0; if(Serial.available()){
Sensor Ultrasónico Practica Final.. :) #include <Servo.h> const int trigger = 12; const int echo = 11; float dist, res; Servo sd; Servo si; int led1 = 7; int led2 = 6; int led3 = 5; int led4 = 4; void bargraph (int led1, int led2, int led3, int led4)// Función bargraph {