Code editor: Arduino 에뮬레이터(avr8js) + ESP32 Web Serial 플래셔

- web-ui/arduino-emulator.html: avr8js 기반 ATmega328P 에뮬레이터
  (핀 상태 패널, 보드 LED, 시리얼 모니터, 속도 조절)
  - cpu.tick() 누락 수정: delay()/millis()/Serial 동작 안 하던 버그
  - 시리얼 라인 추적(serialLineSpan): D13 sys 메시지 끼어들 때 줄 깨짐 수정
- web-ui/esp32-flasher.html: Web Serial로 merged.bin 플래시
- POST /api/arduino/compile: arduino-cli로 uno/nano hex, esp32 merged.bin 컴파일
- POST /api/code/round: 클라이언트 주도 코드 에디터용 1라운드 SSE 엔드포인트
- code.js: 실행 모드에 Arduino 에뮬레이터 / ESP32 플래시 추가

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kim
2026-06-11 16:24:45 +09:00
co-authored by Claude Fable 5
parent f00c453de9
commit fae47a0962
6 changed files with 1204 additions and 9 deletions
+2
View File
@@ -2844,6 +2844,8 @@
background: #0a1812; color: #c8e6c0; min-height: 38px; max-height: 200px;
transition: border-color .2s, box-shadow .2s;
}
.code-ai-input-row.drag-over { outline: 2px solid #22c55e; border-radius: 4px; }
.code-ai-img-thumb { position: relative; display: inline-flex; }
#code-ai-input::placeholder { color: #3d6b4f; }
#code-ai-input:focus {
outline: none; border-color: #22c55e;