Skip to content

Instantly share code, notes, and snippets.

@delasign
Created March 28, 2024 18:54
Show Gist options
  • Save delasign/c3baf987abc2c2af36349ea3eb049ce8 to your computer and use it in GitHub Desktop.
Save delasign/c3baf987abc2c2af36349ea3eb049ce8 to your computer and use it in GitHub Desktop.
Sample use of a enum that has a namespace within a loop.
void loop()
{
// Print the Enum
Serial.print("DifferentEnum Value 1: ");
Serial.println(EnumTwo::DifferentEnum::Value_1);
Serial.print("DifferentEnum Value 2: ");
Serial.println(EnumTwo::Value_2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment