PRESS & EAT: From Idea to Hardware in 5 Minutes - Wio Terminal (D51R) - dumpling - CodeCraft Hub
Scene: Maker. Edge AI application on CodeCraft Hub for Maker use cases.
Devices / BOM: Wio Terminal (D51R), CodeCraft Pro/Max
Maker application on CodeCraft Hub. A Wio Terminal gadget that solves "what to eat today": press the joystick to randomly scroll through 20 foods, and after 2 seconds it stops to tell you what to eat.
Documentation
Struggling with "what to eat" every mealtime? This project is here to save the day.
After burning the program to your Wio Terminal, the screen shows "PRESS & EAT" and "WHAT TO EAT?". Just press the 5-way joystick, and food names start scrolling rapidly — KFC, Burger, Pizza, Sushi, Ramen… 20 in total. After 2 seconds it stops, displaying "TODAY'S CHOICE" with the final result and a matching pixel icon. The bottom says "JUST EAT IT!" — no more indecision, just eat.
Press once to pick, press again for a new result. Great for pre-meal dilemmas, deciding group takeout with friends, or office lunch picks. The dark background with gold text gives it a clean, premium look like a cute mini game console.
Deploy steps
- Preparation
Hardware:
Wio Terminal × 1
USB data cable × 1 (for connecting and burning)
Tools:
Chrome / Edge / 360 Browser (must support Web Serial API)
CodeCraft platform (generate code online, no installation needed):
- Build and Test with CodeCraft
Step 1: Open CodeCraft (Click here to visit the website.)
Go to https://codecraft.seeed.cc in your browser, log in, click "Create Project", and select Wio Terminal as the board.
Step 2: Enter the project prompt
Enter the following prompt in CodeCraft's dialog:
Step 3: Generate and burn
Wait for CodeCraft to generate the code. Connect Wio Terminal to your computer with the USB cable, select the correct serial port in CodeCraft, and click burn.
Step 4: Test
After burning, the Wio Terminal screen shows the idle screen. Press the 5-way joystick and watch the food names scroll rapidly, then stop after 2 seconds showing the final result. Press again to pick again.
If the result isn't quite right (e.g. the UI looks dull, text is too small, icon and text are squeezed together), tell CodeCraft what's wrong and what you want. For example: "make the text bigger", "put the icon on the left and text on the right", "replace the red header bar with a separator line".
- 步骤 3
If you don't want to generate code from scratch, use the ready-made files:
Flash firmware to your device (in-app tool on CodeCraft Hub).
Connect Wio Terminal to your computer with the USB cable
Click "Connect Device", select the serial port for your Wio Terminal, then double-click the setup button on the left
Click connect and burn
After burning, press the 5-way joystick — food names scroll rapidly for 2 seconds then stop, showing "TODAY'S CHOICE" with the final food name and icon, and "JUST EAT IT!" at the bottom
Press the joystick again to pick again
FoodPicker-prompt
- Q&A
Q: Burning failed?
Make sure Wio Terminal is connected via USB and the correct serial port is selected in CodeCraft or the burn page. If it still fails, try unplugging and reconnecting, or switch to a different USB port.
Q: Screen is blank after burning?
Check that the power switch on the side of Wio Terminal is turned on. If the screen is on but shows nothing, the burn may have been interrupted — try burning again.
Q: Joystick press does nothing?
Make sure you're pressing the center of the 5-way joystick (push down), not tilting it up/down/left/right. If it still doesn't respond, try re-burning the firmware.