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 instant refresh on real hardware.
Blinky: the "Hello, World!" of tiny devices.
import {digitalWrite, pinMode} from 'mikrojs/pin'
import {sleep} from 'mikrojs/sleep'
// Replace with your board's LED 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 mikrojs -- my-blinky --template blinky
cd my-blinky
npm install
npx mikro devpnpm create mikrojs my-blinky --template blinky
cd my-blinky
pnpm install
pnpm mikro devyarn create mikrojs my-blinky --template blinky
cd my-blinky
yarn install
yarn mikro devbun create mikrojs my-blinky --template blinky
cd my-blinky
bun install
bunx mikro dev