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 {digitalWrite, pinMode} from 'mikro/pin'
import {sleep} from 'mikro/sleep'
// Replace with your board's LED GPIO pin if different
const LED_PIN = 15
pinMode(LED_PIN, 'OUTPUT').orPanic('Failed to set pin mode')
while (true) {
digitalWrite(LED_PIN, 1)
await sleep(500)
digitalWrite(LED_PIN, 0)
await sleep(500)
}Get it running:
npm create mikro -- --template blinkypnpm create mikro --template blinkyyarn create mikro --template blinkybun create mikro --template blinky