commit cb2eb9dee3386823ed74bb5159dbcb3f32cfdda6 Author: Xeovalyte Date: Wed Oct 4 13:47:55 2023 +0200 feat: Initialized Repository diff --git a/Arduino/Blink/Blink.ino b/Arduino/Blink/Blink.ino new file mode 100755 index 0000000..c322de0 --- /dev/null +++ b/Arduino/Blink/Blink.ino @@ -0,0 +1,42 @@ +const int ledPin = 4; // Define the LED pin +const int minOnTime = 100; // Minimum time LED is ON in milliseconds +const int maxOnTime = 3000; // Maximum time LED is ON in milliseconds +const int minOffTime = 50; // Minimum time LED is OFF in milliseconds +const int maxOffTime = 200; // Maximum time LED is OFF in milliseconds + +unsigned long previousMillis = 0; +int ledState = LOW; +unsigned long onTime = 0; +unsigned long offTime = 0; + +void setup() { + pinMode(ledPin, OUTPUT); + generateRandomTimes(); +} + +void loop() { + unsigned long currentMillis = millis(); + + if (ledState == LOW) { + if (currentMillis - previousMillis >= offTime) { + // Turn the LED on + ledState = HIGH; + previousMillis = currentMillis; + generateRandomTimes(); + } + } else { + if (currentMillis - previousMillis >= onTime) { + // Turn the LED off + ledState = LOW; + previousMillis = currentMillis; + generateRandomTimes(); + } + } + + digitalWrite(ledPin, ledState); +} + +void generateRandomTimes() { + onTime = random(minOnTime, maxOnTime + 1); // Generate a random ON time + offTime = random(minOffTime, maxOffTime + 1); // Generate a random OFF time +} \ No newline at end of file diff --git a/Arduino/Blink/Blink.txt b/Arduino/Blink/Blink.txt new file mode 100755 index 0000000..0626334 --- /dev/null +++ b/Arduino/Blink/Blink.txt @@ -0,0 +1 @@ +Turn an LED on and off. \ No newline at end of file diff --git a/Arduino/LEDTest/LEDTest.ino b/Arduino/LEDTest/LEDTest.ino new file mode 100644 index 0000000..5f92d0f --- /dev/null +++ b/Arduino/LEDTest/LEDTest.ino @@ -0,0 +1,57 @@ +#include + +const int redPin = 4; +const int greenPin = 5; +const int bluePin = 13; +const int whitePin = 14; + +#define PIN_WS2812B 27 +#define NUM_PIXELS 182 + +Adafruit_NeoPixel ws2812b(NUM_PIXELS, PIN_WS2812B, NEO_GRB + NEO_KHZ800); + +void setup() { + ws2812b.begin(); + + pinMode(redPin, OUTPUT); + pinMode(greenPin, OUTPUT); + pinMode(bluePin, OUTPUT); + pinMode(whitePin, OUTPUT); + + analogWrite(redPin, 0); + analogWrite(greenPin, 0); + analogWrite(bluePin, 0); + analogWrite(whitePin, 0); +} + +void loop() { + ws2812b.clear(); + + for (int pixel = 0; pixel < NUM_PIXELS; pixel++) { // for each pixel + ws2812b.setPixelColor(pixel, ws2812b.Color(125, 249, 255)); // it only takes effect if pixels.show() is called + ws2812b.show(); // update to the WS2812B Led Strip + + delay(25); // 500ms pause between each pixel + } + + analogWrite(redPin, 0); + analogWrite(greenPin, 0); + analogWrite(bluePin, 0); + analogWrite(whitePin, 0); + analogWrite(redPin, 255); + delay(1000); + analogWrite(redPin, 0); + analogWrite(greenPin, 255); + delay(1000); + analogWrite(greenPin, 0); + analogWrite(bluePin, 255); + delay(1000); + analogWrite(bluePin, 0); + analogWrite(whitePin, 255); + delay(1000); + analogWrite(redPin, 125); + analogWrite(greenPin, 249); + analogWrite(bluePin, 255); + delay(2000); + +} diff --git a/Arduino/Program/Program.ino b/Arduino/Program/Program.ino new file mode 100644 index 0000000..74f966a --- /dev/null +++ b/Arduino/Program/Program.ino @@ -0,0 +1,6 @@ + +void setup() { +} + +void loop() { +} diff --git a/Arduino/Program/sketch.yaml b/Arduino/Program/sketch.yaml new file mode 100644 index 0000000..35989a9 --- /dev/null +++ b/Arduino/Program/sketch.yaml @@ -0,0 +1,2 @@ +default_port: /dev/ttyUSB0 +default_fqbn: esp32:esp32:nodemcu-32s diff --git a/Audio/2023-09-18 15-12-10.aup3 b/Audio/2023-09-18 15-12-10.aup3 new file mode 100644 index 0000000..e942179 Binary files /dev/null and b/Audio/2023-09-18 15-12-10.aup3 differ diff --git a/Audio/2023-09-18 15-12-10.mp3 b/Audio/2023-09-18 15-12-10.mp3 new file mode 100644 index 0000000..32871cf Binary files /dev/null and b/Audio/2023-09-18 15-12-10.mp3 differ diff --git a/Audio/2023-09-18 15-12-10.wav b/Audio/2023-09-18 15-12-10.wav new file mode 100644 index 0000000..6733c9b Binary files /dev/null and b/Audio/2023-09-18 15-12-10.wav differ diff --git a/Audio/electrified-granules-v3-70951.mp3 b/Audio/electrified-granules-v3-70951.mp3 new file mode 100644 index 0000000..4329ca1 Binary files /dev/null and b/Audio/electrified-granules-v3-70951.mp3 differ diff --git a/Audio/power-charge-6798.mp3 b/Audio/power-charge-6798.mp3 new file mode 100644 index 0000000..dbe08e6 Binary files /dev/null and b/Audio/power-charge-6798.mp3 differ diff --git a/Audio/sci-fi-weapon-charging-01-96645.mp3 b/Audio/sci-fi-weapon-charging-01-96645.mp3 new file mode 100644 index 0000000..a3eaf8e Binary files /dev/null and b/Audio/sci-fi-weapon-charging-01-96645.mp3 differ