From 07851fafce4e883aa80ab3e6297e66dacc84d56c Mon Sep 17 00:00:00 2001 From: krishmo118 Date: Wed, 2 Apr 2025 17:42:22 +0000 Subject: [PATCH] Uploaded new barebones Foundation for CSV Functionality --- barebones1/barebones.ino | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 barebones1/barebones.ino diff --git a/barebones1/barebones.ino b/barebones1/barebones.ino new file mode 100644 index 0000000..2108a2c --- /dev/null +++ b/barebones1/barebones.ino @@ -0,0 +1,39 @@ +#include + +#define NUM_LEDS 300 +#define DATA_PIN 23 +#define CLOCK_PIN 18 + +CRGB leds[NUM_LEDS]; + +long startTime = 0; +long endTime = 0; +long ttotaltiem = 0; + +void setup() { + Serial.begin(115200); + FastLED.addLeds(leds, NUM_LEDS); + FastLED.setBrightness(100); +} + +void loop() { + startTime = millis(); + leds[0] = CRGB::Black; + + + for(int i = 0; i< NUM_LEDS; i++){ + leds[i] = CRGB::White; + FastLED.show(); + delayMicroseconds(1); + leds[i] = CRGB::Black; + } + + endTime = millis(); + ttotaltiem = endTime-startTime; + + // Output in CSV format + Serial.print(testCount); + Serial.print(","); + Serial.println(totalTime); + +}