From 4aa44576b365f5d0c16b353ea1a819d2be8197d1 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 1 Feb 2018 14:56:09 -0500 Subject: [PATCH] Set brightness and alternatively log the rgb --- .../mcopy_projector_tests/mcopy_projector_tests.ino | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ino/components/mcopy_projector_tests/mcopy_projector_tests.ino b/ino/components/mcopy_projector_tests/mcopy_projector_tests.ino index c23c5d3..51d9c52 100644 --- a/ino/components/mcopy_projector_tests/mcopy_projector_tests.ino +++ b/ino/components/mcopy_projector_tests/mcopy_projector_tests.ino @@ -9,8 +9,8 @@ // PIN 3 --==-- 470ohm Din //LIGHT HEADERS -#include "SoftwareSerial.h" -#include "Adafruit_Pixie.h" +#include +#include //#include #define NUMPIXELS 1 // Number of Pixies in the strip @@ -85,6 +85,7 @@ void setup() { pixieSerial.begin(115200); // Pixie REQUIRES this baud rate //light.begin(); //neopixel only + light.setBrightness(255); light.setPixelColor(0, 0, 0, 0); light.show(); @@ -108,6 +109,11 @@ void loop() { } //send light signal to pixie every second if (now - light_time >= 1000) { + /*Serial.print(r); + Serial.print(","); + Serial.print(g); + Serial.print(","); + Serial.println(b);*/ light.setPixelColor(0, r, g, b); light.show(); light_time = now;