⚛️ orbital

Package Version Hex Docs

Build and flash Gleam projects to devices running AtomVM.

A video showcasing the ‘orbital’ workflow: The command ‘gleam run -m orbital flash esp32 –port /dev/tty.usbserial001’ is ran in a terminal window. After a short while the message ‘Done’ is displayed and the command ‘screen’ is ran to show that the code was flashed and is running on an esp device

Add it to your project as a dev dependency:

gleam add --dev orbital

Your project must have a module with a start function that takes no arguments:

import gleam/io

pub fn start() {
  io.println("Hello, from AtomVM!")
}

To build and flash it to a device with the AtomVM firmware installed you can run:

gleam run -m orbital flash esp32 --port /dev/some_device

And you’re good to go! To get an overview of all the available commands and options you can run:

gleam run -m orbital help

FAQ

Search Document