Getting started: from a blank card to a blinking light
Your first Nylon program blinks a light. That sounds small, but it's the whole loop: a card that boots the board, IntelliJ finding the board on your Wi-Fi, and a program that goes from your editor to the board and runs. Here's every step, from a blank card to the blink.
What you need
- A board: a Raspberry Pi 3 B+, Zero 2 W or Pi 4, or a Compute Module 4 Lite on Raspberry Pi's IO board.
- A microSD card and the board's power supply.
- IntelliJ IDEA 2025.2 or newer, Community or Ultimate, on a Mac, Windows or Linux.
- A Wi-Fi network your computer and the board can share. A home network or a phone's hotspot works. Office, guest and campus Wi-Fi usually don't, because they block the announcement a board makes to say it's there.
1. Install the plugin
In IntelliJ, open Settings, then Plugins, search the Marketplace tab for Nylon, and click Install. It's a paid plugin with a 7-day free trial. It adds the language, a Nylon window docked on the right, and Nylon projects in New Project.
2. Write the card
Put a microSD card in your computer and click Write Nylon Card… on the Nylon window's toolbar. Pick the card, then your Wi-Fi network and its password. Nylon downloads the card image, writes it, reads it back to check it, and puts your Wi-Fi on the card. It asks before it erases the card, and then your computer asks once too: for your password on a Mac or Linux, and on Windows, whether to let PowerShell make changes. That's Nylon writing the card.
The card holds the whole system. There's no operating system to install under it, and the same card boots every board above. Writing a card on Windows and Linux needs Nylon 2026.1.2 or newer. If you'd rather write it yourself with Raspberry Pi Imager, Download shows how. The board then asks for your Wi-Fi on a setup network of its own when it first starts.
3. Start the board
Put the card in the board and power it up. The green status light stays on while the board starts, blinks fast while it joins your Wi-Fi, and then gives a short blip every two seconds. That blip means the board is on your network, waiting for IntelliJ.
It shows up under Devices in the Nylon window, with its address.
If it doesn't show up, check that it's on the same Wi-Fi as your computer. Connect to Address… on the toolbar reaches a board by its IP address, and Have questions? has the rest.
4. Make a project
Choose File | New | Project…, then Nylon Isolate, which is a program. Give it a name, tick com.grandtheorem:raspberry-pi under Libraries, and click Create. The project opens on its starter program:
namespace my.lab.blink
import grandtheorem.rpi.Pi
# Run this with the arrow in the gutter beside the entrypoint: the board's status LED blinks three times.
entrypoint main() {
Pi.statusLed().blink(3, 200.milliseconds())
}
5. Run it
Click the blue hexagon in the gutter beside entrypoint main(). The first time, IntelliJ asks which board to run on:
pick yours, and it remembers. Nylon builds the program, sends it to the board over Wi-Fi, and runs it.
Watch the board: its green light blinks three times. The run window says Finished, with how long the program ran.
That's the whole loop. Change the 3 to a 10, click Run again, and the light blinks ten times.
Next
Learn goes on from here, one thing at a time: pins and sensors, a keyboard and a gamepad, and LEGO Technic motors through the Build HAT, up to whole robots. Its Installation and The IDE pages cover each step above in more detail.
Follow along on the blog (RSS) and in GitHub Discussions.