Home Tutorials
Tutorials

Tutorials

Small task-shaped paths for learning Frothy on an ESP32.

Tutorials are for doing one thing end to end. The guide explains the mental model. The reference gives exact behavior. These pages start with a visible goal and stay close to the board.

First Sketches

  • Blink an LED proves that the board, serial port, and live prompt are working.
  • Interactive Workflow shows the loop: change a small word, run it, inspect it, change it again.

Input

Motion

Language Practice

Frothy is early. If a tutorial says a hardware surface is advanced, take that seriously: start with the LED, button, and ADC paths first.


  1. 01 Blink an LED Connect to a board, configure the LED pin, define a blink word, change it live, and save the image.
  2. 02 Interactive Workflow Use the prompt or editor as a live loop against the device-owned image.
  3. 03 Read a Button Read a digital input, turn it into a boolean, and use it to control visible state.
  4. 04 Read a Sensor Read ADC values, scale them, and turn analog input into board behavior.
  5. 05 Build a Calculator Build a small local calculator with named operations, memory, and recoverable state.
  6. 06 Fade an LED Use the ESP32 LEDC surface to fade an LED with a named, current-Frothy wrapper.
  7. 07 Drive a Servo Generate hobby-servo pulses with LEDC and wrap the low-level timing in readable Frothy words.
  8. 08 Advent of Code: Safe Dial Solve a small rotation puzzle with current Frothy names, Cells, and explicit state.
  9. 09 Advent of Code: Grid Scan Scan a tiny grid with flattened Cells, explicit bounds checks, and neighbor-count helpers.