I can not find how to fix my code

int ledPins[] = {2,3,4,5,6,7,8,9};
void setup() {

void oneAfterAnotherLoop(){
int delayTime = 100; }
for(int i = 0; i <= 7; i++){
digitalWrite(ledPins[i], HIGH);

Please edit your post, select all code and click the </> button to apply code tags. Next save your post.

Code tags make it easier to read, easier to copy and prevent the forum software from mangling your code; e.g. [] does not change to [].

Please describe the problem. Does it not compile? Does it not do what you want it to do in which case the question is what you want it to do :slight_smile:

The code is incomplete. Post the whole code. Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

If there are errors, please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

Ah, this is outside a function by the looks of it. And you're missing the loop() function.

1 Like

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