From Mark Clohesy, 1 Month ago, written in Plain Text.
This paste will go to its last resting place in 1 Second.
Embed
  1. // Move a white dot along the strip of leds.  This program simply shows how to configure the leds,
  2. // and then how to turn a single pixel white and then off, moving down the line of pixels.
  3. //
  4. #include <FastLED.h>
  5.  
  6. ///////////////////////////////////////////////////////////////////////////////////////////
  7.  
  8. // How many leds are in the strip?
  9. #define NUM_LEDS 24
  10. #define DATA_PIN 13
  11.  
  12. // This is an array of leds.  One item for each led in your strip.
  13. char *LEDpin[] = {"17", "18", "19", "20", "21", "22", "23", "24", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"
  14.                    };
  15. CRGB leds[NUM_LEDS];
  16.  
  17. // This function sets up the ledsand tells the controller about them
  18. void setup() {
  19.         // sanity check delay - allows reprogramming if accidently blowing power w/leds
  20.         delay(4000);
  21.  
  22.     FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);  // GRB ordering is typical
  23.    
  24. }
  25.  
  26. // This function runs over and over, and is where you do the magic to light
  27. // your leds.
  28. void loop() {
  29.    // Move a single white led
  30.    for(int ledNO = 0; ledNO < NUM_LEDS; ledNO = ledNO + 1) {
  31.       // Turn our current led on to white, then show the leds
  32.       leds(LEDpin(ledNO)) = CRGB::White;
  33.  
  34.       // Show the leds (only one of which is set to white, from above)
  35.       FastLED.show();
  36.  
  37.       // Wait a little bit
  38.       delay(100);
  39.  
  40.       // Turn our current led back to black for the next loop around
  41.       leds[ledNO] = CRGB::Black;
  42.    }
  43. }

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so (libMagickWand.so.5: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/imagick.so.so: cannot open shared object file: No such file or directory))

Filename: Unknown

Line Number: 0

Backtrace: