/* * blink.ino -- LED blink with button-controlled speed * * This .ino file is just the entry point. All logic lives in * BlinkApp (lib/app/blink_app.h) which depends on the HAL * interface (lib/hal/hal.h), making it testable on the host. * * The build script auto-discovers lib/ subdirectories and passes * them as --library flags to arduino-cli, so angle-bracket includes * work for project-local libraries. * * Wiring: * Pin 13 (LED_BUILTIN) -- onboard LED (no wiring needed) * Pin 2 -- momentary button to GND (uses INPUT_PULLUP) * * Serial: 115200 baud * Prints "FAST" or "SLOW" on button press. */ #include #include static ArduinoHal hw; static BlinkApp app(&hw); void setup() { app.begin(); } void loop() { app.update(); }