Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from clifford1one/main
Browse files Browse the repository at this point in the history
agregar apuntes clfford1one
  • Loading branch information
montoyamoraga authored Aug 28, 2024
2 parents fb97eca + 5b19e92 commit 769426f
Show file tree
Hide file tree
Showing 12 changed files with 196 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 07-clifford1one/clase-02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,16 @@ https://www.youtube.com/watch?v=82LAlbSSgRY
https://guitarhero.fandom.com/es/wiki/Guitar_Hero_Wiki:Guitar_Hero_Wiki

https://www.reddit.com/r/GuitarHero/

10. FIGMA

https://www.figma.com/board/73baQbvoc15cwFXiWEnhS4/TALLERSITO?node-id=0-1&t=Ehvh211xISXoF8w5-1


![texto](./apunteHexaTux.jpg).

![texto](./hexaTux4.jpg).

![texto](./apunteHexaTux2.jpg).

![texto](./apunteHexaTux3.jpg).
Binary file added 07-clifford1one/clase-02/apunteHexaTux.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07-clifford1one/clase-02/apunteHexaTux2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07-clifford1one/clase-02/apunteHexaTux3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07-clifford1one/clase-02/apunteHexadeciTux.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07-clifford1one/clase-02/hexaTux4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions 07-clifford1one/clase-03/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# clase-03
##Arduineación 1

Hoy comenzamos a definir lo conceptual y físico de nuestros objetos.

Propuesta: ¿Qué quiero pedirle al Arduino?



Explicación: Hay 3 casillas de las cuales 1 está "ON" y 2 están "OFF".

Cada casilla tiene un botón asociado. Al presionar un botón manda una señal a su respectiva casilla, la cual se apaga o enciende dependiendo de su estado anterior.

Una vez que se encuentrena apagadas todas las casillas, se pasa a la siguiente "etapa".


##AVACNCE 0.1.2


![texto](./tkcad0.1.2.png).

https://www.tinkercad.com/things/giOBoGTMZWH-exquisite-jaagub-gaaris/editel?sharecode=cyrerJqFRBJgO17nTo0HEt22Bv-Y0sGsiJkA3hiFBI0

![texto](./cableadorela0.1.2.png).
Binary file added 07-clifford1one/clase-03/cableadorela0.1.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 07-clifford1one/clase-03/tkcad0.1.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions 07-clifford1one/clase-03/tux0.1.2.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*En este caso quiero conseguir lo siguiente:
Hay 3 casillas de las cuales 1 está "ON" y 2 están "OFF".
Cada casilla tiene un botón asociado. Al presionar un botón manda una señal a su respectiva casilla,
la cual se apaga o enciende dependiendo de su estado anterior.
Una vez que se encuentrena apagadas todas las casillas, se pasa a la siguiente "etapa".
Para esto, comenzaré haciendo un codigo que tenga 3 leds y sus 3 botones respectivos conectados*/

// int son las variables numéricas que se definen

int gLed = 0;
int rLed = 1;
int yLed = 2;
//greenLed-redLed-yellowLed

int bBut = 4;
int rBut = 5;
int wBut = 6;
//blueButton-redButton-whiteButton

int bButValue = 0;
int rButValue = 0;
int wButValue = 0;
//blueButtonValue-redButtonValue-whiteButtonValue

void setup() {

pinMode(bBut, INPUT);
pinMode(rBut, INPUT);
pinMode(wBut, INPUT);
//Definir que los pines donde se conectan los botones actúan como actuador

pinMode(gLed, OUTPUT);
pinMode(rLed, OUTPUT);
pinMode(yLed, OUTPUT);
//Definir que los pines donde se concetan los botones actúan como receptor

}

void loop() {

bButValue = digitalRead(bBut);
/*Aca indica que debe leer los datos del botón. Yo lo entiendo así:
"¿Qué debe hacer? Indagar(digitalRead);
¿Qué es lo que debe indagar?: Los valores del botón azul;
¿Sobre quién debo indagrlo? Al botón azul (bBut).*/

if (bButValue != 0) {
digitalWrite(gLed, HIGH);
}
/* If es una condición. != significa no es igual. digitalWrite sería como "decretar".
"Si, el valor del botón azul NO es 0, decreta positivo el valor del led verde"
*/
else {
digitalWrite(gLed, LOW);
}
/*"De lo contrario, si es que el valor del botón azul es cero, decreta el valor del led verde como "negativo"" */

rButValue = digitalRead(rBut);

if(rButValue != 0) {
digitalWrite(rLed, HIGH);
}

else{
digitalWrite (rLed, LOW);
}


wButValue = digitalRead(wBut);

if (wButValue != 0) {
digitalWrite(yLed, HIGH);
}

else{
digitalWrite (yLed, LOW);
}
}
Binary file added tkcad0.1.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions tux0.1.2.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*En este caso quiero conseguir lo siguiente:
Hay 3 casillas de las cuales 1 está "ON" y 2 están "OFF".
Cada casilla tiene un botón asociado. Al presionar un botón manda una señal a su respectiva casilla,
la cual se apaga o enciende dependiendo de su estado anterior.
Una vez que se encuentrena apagadas todas las casillas, se pasa a la siguiente "etapa".
Para esto, comenzaré haciendo un codigo que tenga 3 leds y sus 3 botones respectivos conectados*/

// int son las variables numéricas que se definen

int gLed = 0;
int rLed = 1;
int yLed = 2;
//greenLed-redLed-yellowLed

int bBut = 4;
int rBut = 5;
int wBut = 6;
//blueButton-redButton-whiteButton

int bButValue = 0;
int rButValue = 0;
int wButValue = 0;
//blueButtonValue-redButtonValue-whiteButtonValue

void setup() {

pinMode(bBut, INPUT);
pinMode(rBut, INPUT);
pinMode(wBut, INPUT);
//Definir que los pines donde se conectan los botones actúan como actuador

pinMode(gLed, OUTPUT);
pinMode(rLed, OUTPUT);
pinMode(yLed, OUTPUT);
//Definir que los pines donde se concetan los botones actúan como receptor

}

void loop() {

bButValue = digitalRead(bBut);
/*Aca indica que debe leer los datos del botón. Yo lo entiendo así:
"¿Qué debe hacer? Indagar(digitalRead);
¿Qué es lo que debe indagar?: Los valores del botón azul;
¿Sobre quién debo indagrlo? Al botón azul (bBut).*/

if (bButValue != 0) {
digitalWrite(gLed, HIGH);
}
/* If es una condición. != significa no es igual. digitalWrite sería como "decretar".
"Si, el valor del botón azul NO es 0, decreta positivo el valor del led verde"
*/
else {
digitalWrite(gLed, LOW);
}
/*"De lo contrario, si es que el valor del botón azul es cero, decreta el valor del led verde como "negativo"" */

rButValue = digitalRead(rBut);

if(rButValue != 0) {
digitalWrite(rLed, HIGH);
}

else{
digitalWrite (rLed, LOW);
}


wButValue = digitalRead(wBut);

if (wButValue != 0) {
digitalWrite(yLed, HIGH);
}

else{
digitalWrite (yLed, LOW);
}
}

0 comments on commit 769426f

Please sign in to comment.