Arduino, running the sketch you wrote
arduino-cli compiles it, an AVR8 core executes it instruction by instruction, and the LCD shows what the ATmega328P actually put on the bus. Uno, Nano, Mega and ATtiny85, no board on your desk.

Hardware is all about iteration. Velxio lets you wire a circuit, program the board and run it in seconds, real firmware on a real solver, right in the browser.
DFRobot · M5Stack links on this page are affiliate links: a purchase through them earns Velxio a small commission at no extra cost to you.
Nothing on this page is a scripted animation: the firmware is compiled and executed, and the circuit around it is solved.
arduino-cli compiles it, an AVR8 core executes it instruction by instruction, and the LCD shows what the ATmega328P actually put on the bus. Uno, Nano, Mega and ATtiny85, no board on your desk.

arduino-cli or ESP-IDF compiles the sketch, then AVR8, RP2040, RISC-V, Xtensa or ARM executes it instruction by instruction. What the OLED draws and what the serial monitor prints is what the chip actually did.

ngspice compiled to WebAssembly runs a full nodal analysis about 60 times a second. GPIO pins drive real nets, ADC inputs read solved node voltages, and probes report RMS, DC and current wherever you drop them.

Adders, comparators, decoders, flip-flops and a 1-bit ALU slice: no microcontroller anywhere, just gates, switches and LEDs solved as a real net. The classroom half of electronics, without the breadboard.

The M5Stack Cardputer with its keyboard, Seeed's round display keeping time, Pimoroni's Badger 2350 driving e-paper, and DFRobot's UNIHIKER M10 in the catalogue alongside them. Their makers sent the hardware so the emulation could be checked against the real thing.




35 boards across 6 CPU architectures — AVR8, ARM Cortex-M, ARM Cortex-A, RISC-V, Xtensa, and Linux. Including partner boards from Pimoroni, M5Stack, Seeed Studio and DFRobot. All running locally, no cloud needed.
One institution contract gives every student in the class a full Pro account. No per-seat checkout, no card details in a classroom.
Private projects, BOM and schematic exports and GitHub Sync, for everyone enrolled.
Billed once to your institution, per semester or per year. Volume pricing on request for large cohorts.
Arduino, ESP32, RP2040, STM32, ATtiny and Raspberry Pi, with SPICE analog solved alongside the firmware. Not a sandboxed mock.
The simulator stays free forever, WiFi with internet included. Paid plans unlock the Linux and STM32 boards, custom WiFi networks and the local network gateway. Maker and Pro add the AI agent; No AI leaves it out.
Discover the simulator + light AI help.
The full workbench, zero AI. You write every line.
For makers shipping real circuits with AI help.
Private projects, GitHub Sync and BOM exports.
Questions, bugs and ideas: the Discord and the issue tracker are open, and so is every line of the simulator.
An interactive Arduino Uno circuit simulation you can run free in your browser on Velxio, by tcflm.
// ============================================================================
// 【审查修复版 · 带逐行逻辑推演注释】双按键中文菜单时钟
// 硬件:DS3231 实时时钟(I2C) + SSD1306 128x64 OLED(I2C) + D9 闹钟 LED
// 按键:D8=菜单/选择键(PIN_MENU),D11=设置/贪睡键(PIN_SET),另一端均接 GND
// 状态机:ST_CLOCK 待机时钟 / ST_RUN 一级菜单 / ST_EDIT 二级编辑 / ST_ALARM 响铃
//
// 本次审查发现并修复的问题(详见文末“修复清单”与配套审查报告):
// [核心修复] 原贪睡触发条件 dm <= 30 语义错误,会把“到达目标后 30 分钟内”
// 都当成到点;改为 dm == 0,即只有当前分钟正好等于贪睡目标分钟才响一次。
// [可读性] keyScan 形参 unsigned long longMs(类型 unsigned long + 变量 longMs)
// 容易被误看成 long long;改名为 thresholdMs,行为不变。
// [结论] 按下贪睡后,界面显示的 snoozeH:snoozeM 计算是正确的(当前分钟+贪睡分钟,
// 跨小时/跨午夜用 %24 处理);出错的是“何时重新响铃”的判断条件,不是显示值。
// ============================================================================
/*
#include <Wire.h> // I2C 总线底层库:OLED 与 DS3231 共用 SDA=A4 / SCL=A5
#include <U8g2lib.h> // OLED 图形库:提供 firstPage/nextPage 页模式绘制
#include <RTClib.h> // DS3231 驱动:rtc.now() 读 DateTime,rtc.adjust() 写时间
// ----------------------------- 引脚与时间常量 -----------------------------
#define PIN_MENU 8 // D8 选择键:待机短按进菜单;菜单内短按循环;长按3秒退出
#define PIN_SET 11 // D11 设置键:菜单短按进编辑;编辑短按+1;长按2秒切字段/保存
#define LONG_MENU_MS 3000UL // 选择键长按阈值 3000ms(退出菜单用)
#define LONG_SET_MS 2000UL // 设置键长按阈值 2000ms(切字段/保存用)
#define DEBOUNCE_MS 20UL // 松开判定为“短按”的最短按下时长,滤机械抖动
#define PIN_LED 9 // D9 闹钟 LED:到点后每 100ms 翻转一次实现狂闪
#define BLINK_MS 100UL // LED 闪烁半周期 100ms(一亮一灭共 200ms)
// ===================== 按键扫描结构体 =====================
// 每个按键用一个 Key 对象保存“上一帧电平、按下时刻、长按是否已触发”,实现非阻塞长短按
struct Key {
uint8_t pin; // 按键连接的 Arduino 引脚号
bool was; // 上一轮扫描时的电平:true=处于按下态(低电平)
bool longDone; // 本次按住期间长按事件是否已发出(保证长按只触发一次)
unsigned long downMs; // 本次按下瞬间的 millis() 时间戳,用于计算按住时长
};
Key kMenu = {PIN_MENU, false, false, 0}; // D8 对象:初始未按下、未触发长按、时刻0
Key kSet = {PIN_SET, false, false, 0}; // D11 对象:初始未按下、未触发长按、时刻0
// ===================== 界面状态机常量 =====================
const int ST_CLOCK = 0; // 待机:整屏显示 RTC 时间(大数字 HH:MM + 秒 + 底部闹铃/贪睡行)
const int ST_RUN = 1; // 一级菜单:三行中文菜单列表,选中行反色
const int ST_EDIT = 2; // 二级编辑:显示标题 + 居中数值 + 底部操作提示,带下划线光标
const int ST_ALARM = 3; // 响铃:LED 狂闪,屏幕与 LED 同步闪烁,底部“贪睡/停止”提示
int state = ST_CLOCK; // 上电默认进入待机时钟界面
int sel = 0; // 一级菜单当前选中项:0=未进入,1=设时间,2=设闹钟,3=设贪睡
int menu = 0; // 正在编辑的菜单项编号(1/2/3),进入 ST_EDIT 时由 sel 复制而来
int field = 0; // 编辑中的字段:0=时,1=分(贪睡项只有分钟,不使用该字段)
// ===================== 时间与闹钟变量 =====================
int editH = 0, editM = 0, editSnooze = 0; // 编辑界面临时值:时 / 分 / 贪睡分钟(未保存前不影响正式值)
int curH = 8, curM = 30; // 保存后的当前时间(仅软件走时模式下使用,作显示参考)
int alarmH = 7, alarmM = 0; // 保存后的闹钟时刻(只存 RAM,掉电丢失)
int snoozeMin = 5; // 保存后的贪睡时长(分钟,编辑时限制 1~30)
bool needDraw = true; // 脏标记:true 表示本循环结束需要重绘当前界面(避免每帧无条件刷屏)
// ---------------- 无 RTC 时的软件走时(millis 兜底方案) ----------------
int swH = 8, swM = 30,