LED Thermometer Project

Hello everyone,
Been recently working on this project but I can't seem to understand how to do it. Would love some help on it, thanks again.

Been working on what project?

Can you be a little less unspecific?

I attached a file that shows what the project is, it's using the Arduino to make LED lights light up in a certain order. Hope that answers your question. (School project)

No, I couldn't open your attachment on my phone.

Can you describe your project in words?
Most Western civilisations gave up on pictograms centuries ago.

  1. Make a sketch called Thermometer that makes all six LEDs light up, going from pin 2 through pin 7, and then go dark from pin 7 through pin 2, with 1/10th second between each change, thermometer style.

This sketch must:
•Begin with all LEDs off.
•Light the LED connected to pin 2, then wait 1/10th second.
•Leaving the LED connected to pin 2 on, light the LED connected to pin 3, then wait 1/10th second.
•Continue for the rest of the pins (2 through 7) until all are on.
•After leaving all LEDs on for 1/10th second, extinguish the LED connected to pin 7 and wait 1/10th second.
•Leaving the LED connected to pin 7 extinguished, turn off the LED connected to pin 6 and wait 1/10th second, and continue until all LEDs are off. Wait 1/10th second. By placing the code that does this in the loop() method, the pattern should repeat over and over.

So, when do we have to hand in your homework?

We believe that every student can learn and achieve at high levels. It is our responsibility to help students find connection and value in learning, and to challenge all students to learn, grow, and succeed academically.

You school district's mission statement. How's that working for you?

(Finding the "thermometer" connection a little difficult to fathom)

a)as this kind of question comes literally every week in the German part of forum, I have something ready for free.
b)as it seems that your programming skills a far behind your class, I hope your German is good enough to read the comments.
c) with best regards to your teacher

/ "Thermometer" Style LED Blinking 2018-09-26; http://forum.arduino.cc/index.php?topic=570493.msg0#new
// Lauflicht in zwei Richtungen rund um den 2018-07-19, http://forum.arduino.cc/index.php?topic=558863.0
// Ähnlich dem Muster von http://forum.arduino.cc/index.php?topic=518131.0
// Beigesteuert von noiasca
// Version 2018-09-26

/* ***************************
 *  Configuration/Konfiguraton
 * ************************* */

//                                5432109876543210           // das Muster, einfach als Bitfolge in einem 2-Byte dann kann man es einfach in der IDE "hinmalen"
const uint16_t     pattern[] = {0b0000000000000000,          
                                0b0000000000000001,          // Led 0 soll leuchten
                                0b0000000000000011,
                                0b0000000000000111,
                                0b0000000000001111,
                                0b0000000000011111,
                                0b0000000000001111,
                                0b0000000000000111,
                                0b0000000000000011,
                                0b0000000000000001
                               };

//const uint8_t ledPin[] = {13, 12, 2, 11, 3, 10, 4, 9, 5, 8, 6, 7}; // maximal 16 Pins - vorsicht der erster PIN ist Index 0 - und das ist im Bit-Muster/Pattern die letzte Stelle!!!
const uint8_t ledPin[] = {2,3,4,5,6,7};                              // maximal 16 Pins! - auf meinem Board
const uint16_t myIntervall = 100;                                    // Hinweis: falls weniger als 254ms gewünscht sind, kann man auch auf uint8_t umstellen
#define DEBUG_UART 1                                                 // Debugausgaben auf Serieller Schnittstelle falls man keine LEDs hat: 0 nein / 1 ja 

/* ***************************
 *  Globals / Variablen für den Sketch
 * ************************* */
 
uint32_t lastMillis = 0;                                  // wann wurde das letzte mal ein Update der LEDs gemacht
uint16_t totalNoPattern = 0;                              // soviele Pattern gehen zwar nie auf einen UNO, aber mehr als uint8_t könnten es schon werden. man könnte ein paar Byte sparen wenn man ein fixes precompiler #define oder ein const macht.
uint8_t  actualPattern = 0;                               // welches Muster soll aktuell ausgegeben werden
uint8_t  totalNoPins = 0;                                 // Anzahl der Leds wird einmal zur Laufzeit ermittelt

/* ***************************
 *  Setup
 * ************************* */

void setup() {
#if DEBUG_UART
  Serial.begin(115200);
  Serial.println(F("\nLED Lauflicht"));
#endif

  totalNoPattern = sizeof(pattern) / sizeof(pattern[0]);   // Ermittlung wie viele Pattern definiert wurden, ich mach das zur Laufzeit, weil ich mir das abzählen sparen wollte.
  totalNoPins = sizeof(ledPin) / sizeof(ledPin[0]);        // Ermittlung wie viele Pins definiert wurden um die Konfiguration zu vereinfachen

  for (uint8_t i = 1; i < totalNoPins; i++) {
    pinMode(ledPin[i], OUTPUT);
  }
}

/* ***************************
 *  Main - Loop
 * ************************* */
 
void loop() {
  if (millis() - lastMillis >= myIntervall)
  {
    actualPattern++;
    if (actualPattern >= totalNoPattern) actualPattern = 0;
    for (uint8_t i = 0; i < totalNoPins; i++)                      // von der Vorgabe her reichen die 10 - werden alle 16 Leds benötigt müsste man auch im setup() mehr initialisieren
    {
      if (pattern[actualPattern] & (1 << i)) {
#if DEBUG_UART
        Serial.print(F("X"));
#endif
        digitalWrite(ledPin[i], HIGH);
      }
      else {
#if DEBUG_UART
        Serial.print(F(" "));
#endif
        digitalWrite(ledPin[i], LOW);
      }
    }
#if DEBUG_UART
    Serial.print(F(" - "));
    Serial.println(actualPattern);
#endif
    lastMillis = millis();
  }
  // do what ever you want to do unblocked here
}

Are the bugs deliberate, or "an exercise for the reader"

AWOL:
bugs

come on - it was one, wasn't it? If the Thread Owner would have asked why it doesn't compile, he/she would have got for sure an answer from some smart guy. But as he/she never reacted on that post I assume he/she is not interested in a solution any longer.