color_code.ino 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. void tristan()
  2. {
  3. pixels.setPixelColor(0, pixels.Color(0,25,0)); // Moderately bright green color.
  4. pixels.show(); // This sends the updated pixel color to the hardware.
  5. in_error=0;
  6. }
  7. void ethan()
  8. {
  9. pixels.setPixelColor(0, pixels.Color(30,18,0)); // Moderately bright green color.
  10. pixels.show(); // This sends the updated pixel color to the hardware.
  11. in_error=0;
  12. }
  13. void valentin()
  14. {
  15. pixels.setPixelColor(0, pixels.Color(25,0,12)); // Moderately bright green color.
  16. pixels.show(); // This sends the updated pixel color to the hardware.
  17. in_error=0;
  18. }
  19. void two()
  20. {
  21. pixels.setPixelColor(0, pixels.Color(0,20,0)); // Moderately bright green color.
  22. pixels.setPixelColor(1, pixels.Color(0,20,0)); // Moderately bright green color.
  23. pixels.show(); // This sends the updated pixel color to the hardware.
  24. in_error=0;
  25. }
  26. void three()
  27. {
  28. pixels.setPixelColor(0, pixels.Color(20,20,20)); // Moderately bright green color.
  29. pixels.setPixelColor(1, pixels.Color(20,20,20)); // Moderately bright green color.
  30. pixels.setPixelColor(2, pixels.Color(20,20,20)); // Moderately bright green color.
  31. pixels.show(); // This sends the updated pixel color to the hardware.
  32. in_error=0;
  33. }
  34. void off_()
  35. {
  36. pixels.setPixelColor(0, pixels.Color(0,0,0)); // Moderately bright green color.
  37. pixels.setPixelColor(1, pixels.Color(0,0,0)); // Moderately bright green color.
  38. pixels.setPixelColor(2, pixels.Color(0,0,0)); // Moderately bright green color.
  39. pixels.show(); // This sends the updated pixel color to the hardware.
  40. in_error=0;
  41. }