Skip to content

Add archivos libreria y .ino#12

Open
WhiteSkull29 wants to merge 4 commits into
masterfrom
UltraSonido
Open

Add archivos libreria y .ino#12
WhiteSkull29 wants to merge 4 commits into
masterfrom
UltraSonido

Conversation

@WhiteSkull29

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread ultrasonido.h Outdated
void getDistancia() {
DISTANCIA = 0.0001723 * LeerSensor();
Serial.println(DISTANCIA "Metros");
delay(10);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no esta retornando nada...
el serial print no deberia estar

Comment thread ultrasonido.ino Outdated
}
};
UltraSonido *sensor = new UltraSonido(12, 13);
void setup() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

el void setup no va

Comment thread ultrasonido.ino Outdated
delay(10);
}
};
UltraSonido *sensor = new UltraSonido(12, 13);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esta linea no va

Comment thread ultrasonido.ino Outdated
void setup() {
Serial.begin(115200);
}
void loop() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esto no va

Comment thread ultrasonido.h
@@ -0,0 +1,29 @@
class UltraSonido {
private:
float DISTANCIA = 0;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aca deberia ir solo los metodos y atributos

Comment thread ultrasonido.ino Outdated
float DISTANCIA = 0;
char NOMBRE;
bool ESTADO;
int pinEco;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

falta incluir el archivo .h y agregar lo metodos correspondiente!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants