arduino error exit status 1 'comparar' was not declared in this scope
hola buenas noches necesito ayuda con este error alli les dejo mi programación
code: [select]
exit status 1
'comparar' not declared in scope
code: [select]
// pin del reseptor 11
#include <virtualwire.h>
byte message [vw_max_message_len];
byte messagelength = vw_max_message_len ;
int boton_a = 8;
void setup (){
pinmode(boton_a,output);
serial.begin(9600);
vw_setup(2000);
vw_rx_start();
}
void loop () {
if ( vw_get_message(message, &messagelength)){
if (comparar("000")==0){
digitalread (boton_a, high);}
}
char comparar(char *cadena){
for(int = 0; i<messagelength; i++)
if (message[i] ! = cadena [i])
{
return 1;
}
{
return 0;
}
}
}
missing }
code: [select]
void loop() {
if (vw_get_message(message, &messagelength)) {
if (comparar("000") == 0) {
digitalread(boton_a, high);
}
}
}
Arduino Forum > International > Español (Moderators: surbyte, Hector_A) > arduino error exit status 1 'comparar' was not declared in this scope
arduino
Comments
Post a Comment