Fast feedback loop
Interactive dev console with watch mode and incremental builds that deploy to your device in a few seconds.
TypeScript for microcontrollers
Modern JavaScript, type safety and fast refresh on real hardware.
Blinky: the "Hello, World!" of tiny devices.
import {DigitalOut} from 'mikro/gpio'
import {sleep} from 'mikro/sleep'
// Replace with your board's LED GPIO pin if different
const led = DigitalOut(15).orPanic('Failed to configure LED pin')
while (true) {
led.write(1)
await sleep(500)
led.write(0)
await sleep(500)
}Get it running:
npm create mikro -- --template blinkypnpm create mikro --template blinkyyarn create mikro --template blinkybun create mikro --template blinky