Old boot spelling animation?

I observe this disabled code fromn BootAnimation.cpp:

void
bootAnimation(void) {
#ifdef ARDUINO_AVR_MODEL01
  LEDControl.set_all_leds_to(0, 0, 0);
  type_letter(LED_K);
  type_letter(LED_E);
  type_letter(LED_Y);
  type_letter(LED_B);
  type_letter(LED_O);
  type_letter(LED_A);
  type_letter(LED_R);
  type_letter(LED_D);
  type_letter(LED_I);
  type_letter(LED_O);
  type_letter(LED_SPACE);
  type_letter(LED_0);
  type_letter(LED_PERIOD);
  type_letter(LED_9);
#endif
}

Is there a problem with enabling this animation? How would one do that?

I’d even like to customize it to spell out a custom message, but first to get it working…

It’s not so much disabled, but unused only. Just place a call to it into your setup() (and don’t forget to #include "BootAnimation.h" too!), and revel in the wonder of leds doing their dance.

Be aware that this is… slow, and the keyboard is unusable until it plays. It’s fun the first few times, but then becomes old and boring very soon.

It would make sense to extract it into a LED-Spelling plugin, and teach it to do the animation in loop(), so the keyboard is usable while it plays.

1 Like