r/code • u/Caden_bad • Jan 11 '24
Help Please i’m coding for my wiring beginner kit with Arduino, i have no idea what i’m doing and whats wrong
4
Upvotes
r/code • u/Caden_bad • Jan 11 '24
1
u/ShaunV12 Jan 11 '24
You have the nearly correct code but just the wrong formatting. If you go to "File->Examples->Basics->Blink" you can see an example of how it should be formatted. If you want to change the pin you can write "int led = 13" above the void Setup(), this is where you define all of your variables
1
u/LuisCaipira Jan 11 '24
I don't know what is your doubt. Do you want an explanation for each part of the code?
Talking about the syntax only, it seems that the closing bracket from the loop is closing before the second call for the LED.
1
u/2SidesOfTheCoin Jan 12 '24
Looks like you're using colons not semicolons?
1
u/Significant_West7373 Jan 12 '24
Initialize is supposed to be commented not a word. Also looks like you didn’t capitalize some of the functions. I see a lot of mistakes