I'm Getting the <FILENAME> Error

Hello I was Doing Up Some Coding And My Arduino Just Said

C:\Users\ollup\AppData\Local\Temp.arduinoIDE-unsaved202504-9764-13hm4t.1qk1ua\sketch_jan4a\sketch_jan4a.ino:1:10: error: #include expects "FILENAME" or
#include <LiquidCrystal.h>>
^
exit status 1

Compilation error: #include expects "FILENAME" or

İf You're Going to Ask Me My Code There it's

"#include <LiquidCrystal.h>

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2, ct=9;

LiquidCrystal mylcd(rs, en, d4, d5, d6, d7);

void setup() {

analogWrite(ct,50);

mylcd.begin(16, 2);

mylcd.print("Hello World ");

}

void loop() {

}"

(it is not the (") things)

Welcome to the forum

As your topic does not relate directly to the installation or operation of the IDE it has been moved to the Programming category of the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

If you meant this:

#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2, ct = 9;
LiquidCrystal mylcd(rs, en, d4, d5, d6, d7);
void setup() {
   analogWrite(ct, 50);
   mylcd.begin(16, 2);
   mylcd.print("Hello World ");
}
void loop() {
}

it compiled just fine for me.

"#include <LiquidCrystal.h>

Does that line of code start with quotation marks in your actual sketch ?

Yeah the arduinho website told me to use them soo ı added them on purpouse
because ıt told me just make your code more obious to see

You did not answer my question

Does that line of code start with quotation marks in your actual sketch ?

ı did

@van_der_decken it did not work

I doubt that very much. Where did you see that advice ?

If the code in the IDE starts with a quotation mark then it is wrong

ıt did not send it cause ı did not use them
(ıdk why it told me that??)

I beg to differ.

me@home:~/Documents/sketchbook/Uno_R3/test $ cat test.ino
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2, ct = 9;
LiquidCrystal mylcd(rs, en, d4, d5, d6, d7);
void setup() {
   analogWrite(ct, 50);
   mylcd.begin(16, 2);
   mylcd.print("Hello World ");
}
void loop() {
}
me@home:~/Documents/sketchbook/Uno_R3/test $ arduino-cli compile -b arduino:avr:uno --warnings all --output-dir ~/tmp
Sketch uses 1934 bytes (5%) of program storage space. Maximum is 32256 bytes.
Global variables use 63 bytes (3%) of dynamic memory, leaving 1985 bytes for local variables. Maximum is 2048 bytes.

Used library  Version Path
LiquidCrystal 1.0.7   /home/me/Documents/sketchbook/libraries/LiquidCrystal

Used platform Version Path
arduino:avr   1.8.3   /home/me/.arduino15/packages/arduino/hardware/avr/1.8.3
me@home:~/Documents/sketchbook/Uno_R3/test $ 

Sorry but I have no idea what you mean

just give up man ıt did not work neigher

Start by posting your current sketch in a new reply to this topic, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

And I'm done.

ok bye

can you tell me that in a not complicated english? ı am just a 12 year old turkish boy and ı am not that a professional english speaker...thank you

Try this Google translation

Tecrübelerime göre kodu düzenlemenin ve kod etiketlerini eklemenin en kolay yolu aşağıdaki gibidir
Okunmasını kolaylaştırmak için IDE'deki Araçlar/Otomatik Format'ı kullanarak kodunuzu düzenleyerek başlayın. Daha sonra Forum için Düzenle/Kopyala seçeneğini kullanın ve kopyalananı yeni yanıta yapıştırın. Forumda okumayı kolaylaştırmak ve böylece yardım sağlamayı kolaylaştırmak için koda kod etiketleri eklenecektir.

You come here for help. You get help. Be grateful or say nothing.
Don't be a punk, regardless of language barrier. Dil engeli ne olursa olsun bir olmayın.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.