pinMode not working

I've bought the elegoo super starter kit though I generally don't know how the IDE works. When I go to a Bareminimum and put a pinMode for pin 13 as an output, the output text doesn't turn blue. Can someone help me and I'm new so I hope I'm not being a pain in the butt.

Welcome to the forum

Do not worry about the colour coding of commands etc in the IDE, that is just eye candy and does not affect the functioning of the code. It works just as well in black and white

If you are still worried then please post your sketch, using code tags when you do

the IDE should do the right thing of you typed the code correctly, respecting lower case or uppercase as it matters in C++

void setup() {
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);
}

void loop() {}

Thanks a lot, I realised that the new IDE is different to the older ones shown in tutorials so the colour doesn't show up. Really helpful!

How is your code blue?

the forum formats it that way - the IDE might format it differently

On my Mac with version 1.8.19 it looks like this
image

but it looks like this in IDE 2.x

image

as @UKHeliBob said, just don't worry about the color coding unless it feels very wrong and not coherent.

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