Skip to content

Another Preprocessor error #28

Closed
Closed
@NicoHood

Description

@NicoHood
void setup() {}

void loop() {
  // Visualize leds via Adalight
  int8_t newData = adalight();

}


//#define ADALIGHT_USE_TEMPLATE

#ifdef ADALIGHT_USE_TEMPLATE
#error
int16_t adalight_template()
#else
int8_t adalight()
#endif
{
  // Flag if the leds got a new frame that should be updated
  return 0;
}

/*
 * sketch_oct03d:5: error: 'adalight' was not declared in this scope
   int8_t newData = adalight();
 */

Error in code above, should be self explaining.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions