RUDOLF XL dutch example code error

When you use the Whadda_xl_example_code for the Rudolf XL kits in Dutch version (so voorbeeldcode_oplossingen) you will get an error like “arduino undefined reference to loop”

This is because there is a #define OEFENING_3 in the first lines of the code but in the program one is using EXERCISE_3 (and EXERCISE_2 …) to define the actual loop.
One should change the #define OEFENING_x to #define EXERCISE_x or change all the EXERCISE_x to OEFENING_x.

Hello @stages ,

Thanks for your feedback. :+1: Indeed you’re right for “Dutch” example version.

We have meanwhile noticed this problem, and have corrected the example codes on the product page for all Whadda XL’s at the manual tab, and in the online manual.

The loop is changed like this:

#ifdef OEFENING_1 //Verander het kleur van blauw naar groen (gebruik het engelse woord 'green')
void loop() {
  for (int i = 0; i < NUM_LEDS; i++) {
    FastLED.clear();
    leds[i] = CRGB::Blue;
    FastLED.show();
    delay(500);
  }
}
#endif

#ifdef OEFENING_2 //Zorg ervoor dat elke LED een andere kleur weergeeft
void loop() {
  for (int i = 0; i < NUM_LEDS; i++) {
    FastLED.clear();
    leds[i] = CRGB::Blue;
    FastLED.show();
    delay(500);
  }
}
#endif

#ifdef OEFENING_3 //Verander de snelheid
void loop() {
  for (int i = 0; i < NUM_LEDS; i++) {
    FastLED.clear();
    leds[i] = CRGB::Blue;
    FastLED.show();
    delay(500);
  }
}
#endif

Best Regards,
Velleman Support