Add wiring instructions to mcopy_light_tests

This commit is contained in:
mmcw-dev 2017-12-28 18:31:10 -05:00
parent 8549a08fb7
commit 3efdba9ec4
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,12 @@
//Test lighting with NeoPixels instead of Pixies to prevent eye damage. //Test lighting with NeoPixels instead of Pixies to prevent eye damage.
//NeoPixel wiring, put 1000uF cap across 5V and GND and 470ohm resistor
//in series with the data connection to the Arduino pin
//
// ARDUINO NEOPIXEL
// 5VDC --|--| 1000uF 5V
// GND --|--| 1000uF GND
// PIN 3 --==-- 470ohm Din
//#include "SoftwareSerial.h" //#include "SoftwareSerial.h"
//#include "Adafruit_Pixie.h" //#include "Adafruit_Pixie.h"
@ -90,7 +98,7 @@ void colorString () {
//Wait for color string //Wait for color string
} }
color = Serial.readString(); color = Serial.readString();
//Serial.println(color); Serial.println(color);
commaR = color.indexOf(','); //comma trailing R commaR = color.indexOf(','); //comma trailing R
commaG = color.indexOf(',', commaR + 1); commaG = color.indexOf(',', commaR + 1);