LEDS
CircuitPlayground.setPixelColor(0, 255, 255, 255); // (which pixel?, red, green, blue)
CircuitPlayground.clearPixels(); // turns all neopixels off by clearing the data!
SPEAKER
CircuitPlayground.playTone(2000, 1000); // (tone in hz, duration)
PRINT STATEMENT
Serial.println("This statement will print to the serial monitor");
POSITION SERVO
myservo.write(90);
AND &&
Example:
if (capVal > 200 && capVal < 400){ Serial.print("touched")};
OR ||
Example:
if (capVal > 200 || capVal < 400){ Serial.print("touched")};
NOT !
Example:
if !(capVal < 800){ Serial.print("touched")};
EQUALS ==
Example:
if (capVal == 800){ Serial.print("touched")};