Treppenlauflicht

Vielen Dank, das mit den Lichtern werde ich mal versuchen, jedoch geht bei mir das Testen nicht so einfach, die Anlage ist bereits draußen verbaut und das ist es ein wenig aufwändiger und den computer kann ich da auch nicht mitnehmen.

Das mit dem const byte funktioniert irgendwie nicht, da kommt immer ein Fehler beim überprüfen, genauso wie bei der Array:

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino Leonardo"

Lauflicht:2: error: expected initializer before 'A1'

const byte  PIR_TOP_PIN A1

                        ^

C:\Users\Buder\Documents\Arduino\libraries\Lauflicht\Lauflicht.ino: In function 'void setup()':

Lauflicht:11: error: 'LED_0_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                     ^

Lauflicht:11: error: expected '}' before ';' token

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                              ^

Lauflicht:11: error: 'LED_1_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                ^

Lauflicht:11: error: 'LED_2_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                           ^

Lauflicht:11: error: 'LED_3_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                      ^

Lauflicht:11: error: 'LED_4_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                 ^

Lauflicht:11: error: 'LED_5_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                            ^

Lauflicht:11: error: 'LED_6_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                       ^

Lauflicht:11: error: 'LED_7_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                                  ^

Lauflicht:11: error: 'LED_8_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                                             ^

Lauflicht:11: error: 'LED_9_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                                                        ^

Lauflicht:11: error: 'LED_10_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                                                                   ^

Lauflicht:11: error: 'LED_11_PIN' was not declared in this scope

  const byte LED[] ={LED_0_PIN; LED_1_PIN, LED_2_PIN, LED_3_PIN, LED_4_PIN, LED_5_PIN, LED_6_PIN, LED_7_PIN, LED_8_PIN, LED_9_PIN, LED_10_PIN, LED_11_PIN)

                                                                                                                                               ^

C:\Users\Buder\Documents\Arduino\libraries\Lauflicht\Lauflicht.ino: In function 'void loop()':

Lauflicht:18: error: 'PIR_TOP_PIN' was not declared in this scope

  pirWert = analogRead(PIR_TOP_PIN);

                       ^

Lauflicht:22: error: 'LichtAn' was not declared in this scope

    LichtAn(richtung);

                    ^

Lauflicht:24: error: 'LichtAus' was not declared in this scope

    LichtAus();

             ^

Lauflicht:26: error: 'PIR_BOTTOM_PIN' was not declared in this scope

  pirWert = analogRead(PIR_BOTTOM_PIN);

                       ^

Lauflicht:30: error: 'LichtAn' was not declared in this scope

    LichtAn(richtung);

                    ^

Lauflicht:32: error: 'LichtAus' was not declared in this scope

    LichtAus();

             ^

exit status 1
expected initializer before 'A1'

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Zu dem Code-Tags: ich bin absoluter Anfänger und kenne mich überhaupt nicht damit aus, ich versuche wirklich mein bestes und werde auch versuchen diesen Tipp mit umzusetzen.