 
     // look for the newline. That's the end of your
     // sentence:
-    if (Serial.read() == '\n') {
-      // constrain the values to 0 - 255 and invert
-      // if you're using a common-cathode LED, just use "constrain(color, 0, 255);"
-      red = 255 - constrain(red, 0, 255);
-      green = 255 - constrain(green, 0, 255);
-      blue = 255 - constrain(blue, 0, 255);
-
-      // fade the red, green, and blue legs of the LED: 
-      analogWrite(redPin, red);
-      analogWrite(greenPin, green);
-      analogWrite(bluePin, blue);
+    int inChar = Serial.read();
+    if (inChar == '\n' || inChar == '\r') {
+      // use the on-board neopixel
+      strip.setPixelColor(0, strip.Color(red, green, blue));
+      strip.show();
 
       // print the three numbers in one string as hexadecimal:
       Serial.print(red, HEX);

/*
  Reading a serial ASCII-encoded string.
 

 This example code is in the public domain.
 */

void setup() {
  // initialize serial:
  Serial.begin(115200);

  strip.begin();
  strip.show(); // Initialize all pixels to 'off'

}

