Skip to main content

Generic Card

Preview:

Preview

Generic card is the 'fits-all-types' card, which you can use to display any kind of value. It's mostly used when you want to display numbers, strings etc which don't relate to any other card in the list.

Note: If you can't find the card which you are looking for, you can always raise request for more cards on the repository by creating an issue.

Type:

GENERIC_CARD


Valid Data Types:

  • int
  • bool
  • float
  • String

Initializer:

/* 
Generic Card
Valid Arguments: (ESPDash dashboard, Card Type, const char* name, const char* symbol (optional) )
*/
Card card1(&dashboard, GENERIC_CARD, "Generic1");

Updaters:

card1.update(int value);
card1.update(bool value);
card1.update(float value);
card1.update(String value);