From 6941cad0e0af80c63fafd07f6853a913faab015e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ricco=20M=C3=BCller?= <ricco.mueller@tu-braunschweig.de>
Date: Thu, 11 Apr 2024 08:56:00 +0000
Subject: [PATCH] Upload New File

---
 Arduino Code/RGB_Blink/RGB_Blink.ino | 65 ++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 Arduino Code/RGB_Blink/RGB_Blink.ino

diff --git a/Arduino Code/RGB_Blink/RGB_Blink.ino b/Arduino Code/RGB_Blink/RGB_Blink.ino
new file mode 100644
index 0000000..35abda3
--- /dev/null
+++ b/Arduino Code/RGB_Blink/RGB_Blink.ino	
@@ -0,0 +1,65 @@
+/*
+  Blink
+
+  Turns an LED on for one second, then off for one second, repeatedly.
+
+  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
+  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
+  the correct LED pin independent of which board is used.
+  If you want to know what pin the on-board LED is connected to on your Arduino
+  model, check the Technical Specs of your board at:
+  https://www.arduino.cc/en/Main/Products
+
+  modified 8 May 2014
+  by Scott Fitzgerald
+  modified 2 Sep 2016
+  by Arturo Guadalupi
+  modified 8 Sep 2016
+  by Colby Newman
+
+  This example code is in the public domain.
+
+  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
+*/
+#include "LED_status.h"
+
+
+// the setup function runs once when you press reset or power the board
+void setup() {
+  // initialize digital pin LED_BUILTIN as an output.
+
+  pinMode(LED_RED_PIN, OUTPUT);
+  pinMode(LED_GREEN_PIN, OUTPUT);
+  pinMode(LED_BLUE_PIN, OUTPUT);
+
+  digitalWrite(LED_RED_PIN, LOW);
+  digitalWrite(LED_GREEN_PIN, HIGH);
+  digitalWrite(LED_BLUE_PIN, HIGH);
+  delay(2000);
+  digitalWrite(LED_RED_PIN, HIGH);
+  digitalWrite(LED_GREEN_PIN, LOW);
+  digitalWrite(LED_BLUE_PIN, HIGH);
+  delay(2000);
+  digitalWrite(LED_RED_PIN, HIGH);
+  digitalWrite(LED_GREEN_PIN, HIGH);
+  digitalWrite(LED_BLUE_PIN, LOW);
+  delay(2000);
+
+  init_LED();
+}
+
+// the loop function runs over and over again forever
+void loop() {
+  delay(1000); 
+  setLEDColor(20, 0 , 0);
+  delay(1000);
+  setLEDColor(255,50 , 0);
+  delay(1000);
+  setLEDColor(0, 20 , 0);
+  delay(1000);
+  setLEDColor(0, 255 , 20);
+  delay(1000);
+  setLEDColor(0, 0 , 120);
+  delay(1000);
+  setLEDColor(255, 0 , 120);
+}
-- 
GitLab