Monkey C and Connect IQ
Monkey C is the programming language for Garmin Connect IQ — the platform for Garmin's wearable devices (watches, cycling computers, and more).
The languages
- Monkey C (
.mc,.mb,.mcgen) — the application language. A watched Monkey C app is typically anApplicationsubclass plus*View.mcpages that draw to aGraphics.Dc. - Jungle (
.jungle) — a simplekey = valuemanifest format that declares the app:project_type,monkeyc_version, devicepermissions,resources,source_files, and SDK$(...)lookups.
A minimal package looks like:
my-app/
├── manifest.xml
├── monkey.jungle
├── resources/
└── source/
├── MyAppApp.mc
└── MyAppView.mc
Building and running
PRGs are built with the official Connect IQ SDK toolchain:
monkeyc -f monkey.jungle -d <device> -o bin/<package>.prg -y <developer_key> -w
monkeydo bin/<package>.prg <device>
The monkey tool in this repo wraps monkeyc/monkeydo/connectiq for
builds and simulator runs (monkey build, monkey run), and adds:
- Formatting, linting, parsing, and checking of
*.mc/*.junglefiles - Project/SDK/device discovery
It orchestrates the official SDK; it does not replace it.
What this repo provides
crates/— themonkeyCLI:- Formatting, linting, parsing, and checking of
*.mc/*.junglefiles - Project/SDK/device discovery (
doctor,sdk,device,project) - Editor-friendly
--stdin/--checkmodes
- Formatting, linting, parsing, and checking of
packages/extensions/vscode/andpackages/extensions/zed/— editor support:- Highlighting, formatting, themes, icons
- Optional simulator preview that wraps the SDK commands above