     }
   }
 } 
+
 void runGrid() 
 {
-  
   for(uint8_t x = 0; x < WIDTH; ++x) {
     for(uint8_t y = 0; y < HEIGHT; ++y) {
 

  setup_timer1_ovf();
}

void runaround()
{ 
  static byte n = 250;
  static byte r = 0;
  static byte g = MAX_BRIGHTNESS;
  static byte b = 0;
  
  r = random(MAX_BRIGHTNESS);
  g = random(MAX_BRIGHTNESS);
  b = random(MAX_BRIGHTNESS);
  
  for(byte y=0; y < HEIGHT; ++y)
  {
    for(byte x=0; x < WIDTH; ++x)
    {
      memset((void*)brightness, 0, sizeof(brightness));      
      set_led_rgb(x, y, r, g, b);
      delay(n);
    }
    
    ++y;
    
    for(int x=WIDTH-1; x != -1; --x)
    {
      memset((void*)brightness, 0, sizeof(brightness));
      set_led_rgb(x, y, r, g, b);
      delay(n);
    }
  }
  
  for(byte y=HEIGHT-2; y != 0; --y)
  {
    memset((void*)brightness, 0, sizeof(brightness));
    set_led_rgb(0, y, r, g, b);
    delay(n);
  }
  
  r = random(MAX_BRIGHTNESS);
  g = random(MAX_BRIGHTNESS);
  b = random(MAX_BRIGHTNESS);
}

void random_leds(void) {
  set_led_hue(
      (byte)(random(WIDTH))

 * Website: www.christianbenjaminries.de
 * GitHub: https://github.com/cbries
 * License: MIT, see https://github.com/cbries
 *
 * 2015-04-06 Christian Benjamin Ries
 *   - added command for switching between default modes
 *      'mA'  run in grid mode which allows setting of individual led values
 *      'mB'  randmom leds
 *      'mC'  color wave
 *      'mD'  rainbow
 *      'mE'  show Super Mario's Goomba :)
 *
 * 2015-02-27 Christian Benjamin Ries
 *   - correct rgb mapping of serial received data
