Skip to content

Examples ​

Each example is a standalone project you can use as a starting point.

ExampleDifficultyDescription
BlinkyBeginnerBlink an LED on and off
PWM LEDBeginnerFade an LED in and out using PWM
SchemaBeginnerRuntime data validation with typed schemas
WiFi + FetchIntermediateConnect to WiFi and fetch JSON from an API
WiFi Access PointIntermediateTurn the ESP32 into a WiFi hotspot
HTTP ServerIntermediateServe a JSON API and SSE stream on the LAN
Captive PortalAdvancedAP + DNS redirect + auto-opening sign-in page
UDP DiscoveryIntermediateFind peer devices on the LAN via UDP multicast
SNTPIntermediateSync the device clock via NTP
RTC CounterIntermediateCount wake-ups from deep sleep using RTC memory
NeoPixelIntermediateAnimated RGB LED patterns
UARTIntermediateSerial communication with UART loopback
BLE BeaconIntermediateBroadcast sensor readings over BLE
BLE GATTAdvancedConnectable GATT peripheral with notify

More examples are available in the examples/ directory on GitHub.

Mikro.js is built with AI assistance, code and docs alike. Read the AI disclosure.