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.
This commit is contained in:
parent
cfa03aeaf9
commit
bd1ee89b5e
|
|
@ -2700,8 +2700,11 @@ export const SimulatorCanvas = ({ headerSlot }: SimulatorCanvasProps = {}) => {
|
|||
{t('editor.canvas.serial')}
|
||||
</button>
|
||||
|
||||
{/* 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') && (
|
||||
<CameraToggle boardId={activeBoard.id} />
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue