# Mise_Deck

**A pocket mise en place and kitchen utility firmware for the M5Stack Cardputer.**

Mise_Deck turns the M5Stack Cardputer into a compact recipe library and hands-on kitchen companion. It can organize and scale recipes, guide ingredient weighing, monitor cooking temperatures, run timers, share recipes offline, and serve a local browser portal.

> *"we are the music makers and we are the dreamers of dreams"*

Mise_Deck was idealized by **André Fuentes** / **@anfuentz** and vibecoded with **Codex**.

## Current release

**v2.0.0** — one bilingual firmware with integrated support for the M5Stack Unit KMeter-ISO thermometer and Unit Mini Scales.

## Cardputer interface

### Main menu

The interface uses a compact terminal/cyberdeck layout with large menu targets, persistent battery percentage, and consistent navigation hints.

![Mise_Deck main menu](media/screenshots/cardputer/02_main_menu.png)

### Recipe library and overview

Recipes are stored on the microSD card and organized by category and favorites. Ingredients and preparations are displayed one at a time with large weights, while long names scroll smoothly.

![Mise_Deck recipe overview](media/screenshots/cardputer/04_recipe_overview.png)

Recipes can be scaled by total weight or by the amount available for one ingredient. The action menu also provides editing, duplication, timer, offline sharing, and guided weighing.

![Mise_Deck recipe actions](media/screenshots/cardputer/05_recipe_actions.png)

### Language and color

English and Portuguese/Brazilian are included in the same build. Language, temperature unit, and one of eight interface colors can be selected from the System menu and remain saved after restarting.

![Mise_Deck language and color settings](media/screenshots/cardputer/15_language_color.png)

## Kitchen tools

The Tools menu brings the thermometer, standalone scale, timer, and unit converter together.

![Mise_Deck tools menu](media/screenshots/cardputer/09_tools.png)

### Thermometer

Designed for the **M5Stack Unit KMeter-ISO** with a K-type probe. Choose free reading, a custom or saved target, or a protein profile for beef, chicken, pork, and fish.

![Mise_Deck thermometer profiles](media/screenshots/cardputer/10_thermometer_profiles.png)

The live display prioritizes current temperature, target, and elapsed time. Readings are filtered for stability. When the target is held, the screen flashes and an alarm continues until acknowledged. Celsius and Fahrenheit are supported.

![Mise_Deck thermometer live view](media/screenshots/cardputer/11_thermometer_live.png)

### Recipe scale mode

Designed for the **M5Stack Unit Mini Scales**. From a recipe action menu, Mise_Deck builds a weighing queue; composite recipes first ask which preparation to use.

The guided flow asks for the bowl, performs a tare, and then displays each ingredient with a large live weight and vertical progress bar.

![Mise_Deck bowl prompt](media/screenshots/cardputer/12_scale_bowl.png)

Progress audio follows the bar, completion advances to the next ingredient automatically, and tare transitions hide unstable intermediate readings.

![Mise_Deck guided recipe weighing](media/screenshots/cardputer/13_scale_recipe.png)

### Standalone scale

The standalone tool offers a large stabilized reading, tare control, and selectable grams, kilograms, ounces, or pounds. A guided calibration flow is available from System.

![Mise_Deck standalone scale](media/screenshots/cardputer/14_scale_free.png)

## Browser portal

After connecting to Wi-Fi, open `misedeck.local` or the IP shown on the Cardputer. The responsive portal runs directly on the device and does not require a cloud account.

### Browse recipes

Browse by category, open recipe details, change proportions, download TXT files, sync the library, and delete recipes.

![Mise_Deck desktop browser portal](media/screenshots/portal/portal_desktop_overview.png)

### Create and edit recipes

Create simple or composite recipes with guided fields for name, category, total weight, preparations, and ingredients.

![Mise_Deck browser recipe editor](media/screenshots/portal/portal_desktop_editor.png)

### Backup export

Download the whole library as one TXT backup or as individual recipe TXT files in a ZIP archive.

![Mise_Deck browser backup menu](media/screenshots/portal/portal_desktop_backup.png)

## Feature summary

- Simple and composite recipe library on microSD
- Category and favorites browsing
- Guided recipe creation and editing on Cardputer and browser
- Proportional scaling by total or individual ingredient
- Guided recipe weighing with Unit Mini Scales
- Standalone scale with tare, units, filtering, and guided calibration
- KMeter-ISO thermometer with protein profiles, custom and saved targets
- Celsius/Fahrenheit selection, stabilized readings, elapsed time, and persistent alarm
- Timer presets and custom timer
- Temperature and weight converter
- Offline recipe sharing through a Cardputer-hosted page
- Local responsive browser portal with editing, deletion, TXT, and ZIP backup
- English and Portuguese/Brazilian in one firmware
- Eight selectable interface colors
- Smooth long-name scrolling and double-buffered rendering
- Transactional recipe saves and recovery from interrupted writes

## Hardware

Required:

- M5Stack Cardputer or Cardputer ADV
- FAT32 microSD card

Optional:

- M5Stack Unit KMeter-ISO
- K-type thermocouple probe
- M5Stack Unit Mini Scales

The optional modules connect through the Cardputer Grove port. Connect only the module used by the selected tool.

## Controls

- `;` — up
- `.` — down
- `,` — left / previous
- `/` — right / next
- `OK` / `Enter` — confirm
- `` ` `` / `Esc` — back / cancel
- `Del` — delete
- `Tab` — favorite/unfavorite recipe
- `Space` — open recipe or preparation actions

During text or number editing:

- `,` — move cursor left
- `/` — move cursor right
- `Del` — delete before cursor

## Recipe TXT format

```txt
ANDRE'S FOCACCIA
CATEGORY: DOUGHS
FAVORITE: YES
TOTAL: 700.3

[INGREDIENTS]

WATER|293.0|g
SUGAR|8.0|g
OLIVE OIL|20.0|g
WHEAT FLOUR|366.0|g
YEAST|3.3|g
SALT|10.0|g
```

Composite recipes use `[PREP]` blocks. Existing English and PT-BR recipe files remain compatible regardless of the selected interface language.

## Offline sharing

```text
Recipe > Actions > Share
```

The Cardputer creates its own temporary network and displays a QR code. A phone can connect directly and open a local recipe page with copy and download options; home Wi-Fi is not required.

## Build

Recommended build system: PlatformIO.

```bash
pio run
pio run -t upload
```

Validated with:

- M5Cardputer `1.1.1`
- M5Unified `0.2.19`
- M5GFX `0.2.26`
- IRremote `4.7.1`
- ESP32 Arduino framework

See [docs/INSTALL.md](docs/INSTALL.md) for flashing and microSD instructions.

## Release binary

- `releases/v2.0.0/Mise_Deck_Cardputer_v2.0.0.bin`

## Documentation

- [Install guide](docs/INSTALL.md)
- [Feature overview](docs/FEATURES.md)
- [Portal guide](docs/PORTAL.md)
- [Roadmap](docs/ROADMAP.md)
- [Release notes](docs/RELEASE_NOTES_v2.0.0.md)
- [Portuguese README](README.pt-BR.md)

## License

Mise_Deck is released under the [MIT License](LICENSE).
