From bd1ee89b5e8bca18993af6b249d68c8e895f7937 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Tue, 4 Aug 2026 06:29:53 +0200 Subject: [PATCH] feat(camera): the webcam toggle serves the XIAO ESP32S3 Sense too The Camera button was hard-gated to the esp32-cam board kind. The Sense now runs its camera through the S3 engine's LCD_CAM model, fed by the same useWebcamFrames -> sendCameraFrame path, so the toggle shows for it as well. --- frontend/src/components/simulator/SimulatorCanvas.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/simulator/SimulatorCanvas.tsx b/frontend/src/components/simulator/SimulatorCanvas.tsx index b9087d7b..83b4ef17 100644 --- a/frontend/src/components/simulator/SimulatorCanvas.tsx +++ b/frontend/src/components/simulator/SimulatorCanvas.tsx @@ -2700,8 +2700,11 @@ export const SimulatorCanvas = ({ headerSlot }: SimulatorCanvasProps = {}) => { {t('editor.canvas.serial')} - {/* ESP32-CAM webcam stream toggle */} - {activeBoard?.boardKind === 'esp32-cam' && ( + {/* Webcam stream toggle, for boards with a camera: the + ESP32-CAM (OV2640 over I2S0 DVP) and the XIAO ESP32S3 + Sense (OV2640-compatible over LCD_CAM). */} + {(activeBoard?.boardKind === 'esp32-cam' || + activeBoard?.boardKind === 'xiao-esp32s3-sense') && ( )}