Arduino LCD Display does not display message [closed]

1

I'musingthe simulator simulator.

I can not make the test message appear on the display. When the call does not appear, only the display will turn on.

What am I doing wrong?

Do not mind the other components, just the test message to be displayed on the LCD.

#include <LiquidCrystal.h>

int temperatura = 0;

LiquidCrystal lcd(9,8,5,4,3,2);

void setup()
{
  //Confg LCD
  lcd.begin(16,2);
  lcd.setCursor(0,0);
  lcd.print("Teste");

  //Senssor temp
  pinMode(A0, INPUT);

  //LEDs
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
}

void loop()
{
  temperatura = analogRead(A0);
  if (temperatura >= -40 || temperatura <= 15) {
    digitalWrite(11, HIGH);
    digitalWrite(12, LOW);
    digitalWrite(13, LOW);
  }
  if (temperatura >= 16 || temperatura <= 23) {
    digitalWrite(11, LOW);
    digitalWrite(12, HIGH);
    digitalWrite(13, LOW);
  }
  if (temperatura >= 24 || temperatura <= 125) {
    digitalWrite(11, LOW);
    digitalWrite(12, LOW);
    digitalWrite(13, HIGH);
  }


  //LCD
  lcd.setCursor(0,1);
  lcd.print("Teste 2");



  //delay(10); // Delay a little bit to improve simulation performance
}
    
asked by anonymous 01.01.2019 / 19:05

0 answers