Problems returning an Arduine array

Asked

Viewed 49 times

2

I’m not getting back the array of the following code:

void loop() {
  if(tem_msg){
    lcd.clear();              // <-- limpa o cursor e retorna ele pra linha 1 e coluna 1
    lcd.print(msg[indice]);   // <-- printa a msg do indice
    tem_msg = false;          // <-- limpa a flag da msg
  }

  ent_1 = analogRead(A0);
  if(ent_1 == 0){
   funcaoMsg();
  }

}

**void** funcaoMsg(){
 mensagem[]={true, 2};
}

How do I return the array of that code?

  • Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of this. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.