Skip to main content

blokdots.h

blokdots.h is the generated header file for your project. Include it once at the top of your sketch and it pulls in everything your project needs — the right component classes, the event system, and any required Arduino libraries.

C++
#include "blokdots.h"

The Blokdots app regenerates this file automatically each time you export or upload a sketch.

#What it includes

The file is tailored to your specific project:

  • Arduino standard library (Arduino.h)
  • External libraries — only the ones your components actually need (e.g., Adafruit_NeoPixel.h for an LED Strip)
  • Value typesblokdots::String and blokdots::Color
  • Utility helperscolor, string, and bitmap utilities, included only when needed
  • EventBus — the global eventBus instance for events and timers
  • ComponentBase — the base class all components extend
  • Component headers — one per component type used in your project (e.g., Button.h, LEDStrip.h)

#Why it's generated

Every project uses a different set of components. Generating blokdots.h per project means:

  • Only the headers your project actually uses are included, keeping compile times and binary size small
  • Internal buffer sizes are set to exactly what your project needs, with no wasted RAM