LCD Code issue Arduino mega (ELEGOO?)

September 27, 2023, 16:43

k9t33n

can you post the code and not just take a picture please?

leaveletmesleep

yes, give me like 10min and I'll post it immediately

leaveletmesleep

I couldn't have discord on my laptop on the wifi so I'm walking home now

k9t33n

ok thats fine

k9t33n

i probs cant help but ill try

leaveletmesleep

but if I run this it works perfectly

k9t33n

no i mean text

k9t33n

just send the file that would be great

leaveletmesleep

oh heard

k9t33n

ok anyway i dont know how to fix

k9t33n

i was just checking but i defo cant fix this, sorrry

leaveletmesleep

but anyway you cant help so its fine

k9t33n

yeah

k9t33n

i hope someone else can for you

leaveletmesleep

ino
//=======================================================
#include <IRremote.hpp>
#include <LiquidCrystal.h>

const int TEMP=6; //Temp Sensor is on pin A0
int val = 0; //Variable to hold integer analog reading
float temp_val;
const int redLED= 12;
const int greenLED= 10;
const int buzz= 7;
const int motor= 2;
const int rs = 8, en = 6, d4 = 5, d5 = 4, d6 = 13, d7 = 11;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
//LCD RS IS IN PIN 8
//LCD E IS IN PIN 6
//LCD D4 IS IN PIN 5
//D5 IS IN PIN 4
//D6 IS IN PIN 13
//D7 IS IN PIN 11 
#define IR_RECEIVE_PIN 3
#define DISABLE_CODE_FOR_RECEIVER
void setup()
{
Serial.begin (9600); // set up serial communication
pinMode(greenLED, OUTPUT);
pinMode(redLED, OUTPUT);
pinMode(buzz, OUTPUT);
pinMode(motor, OUTPUT);
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}


void loop()
{
 
 lcd.setCursor(0, 1);
 lcd.print(millis() / 1000);

}//loop