From 9d8cc0976f7b419d28736ba610051e80a0cbdec7 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Mon, 27 Jul 2026 18:31:16 +0200 Subject: [PATCH] fix(examples): la ILI9341 del preview de camara, girada 90 y sin cables sobre el cristal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El modulo es retrato con la botonera de pines en el borde INFERIOR y el sketch dibuja en setRotation(1): segun el mapeo MADCTL del propio modelo (writePixel: el borde superior del contenido rot-1 cae sobre el borde IZQUIERDO del canvas), verlo derecho exige girar el modulo un cuarto horario — igual que en el banco fisico. El mismo giro lleva los pines al borde izquierdo, de cara a la placa, asi que los cables van rectos entre ambos en vez de por encima del cristal. --- frontend/src/data/examples.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/data/examples.ts b/frontend/src/data/examples.ts index a477196b..5bf102c7 100644 --- a/frontend/src/data/examples.ts +++ b/frontend/src/data/examples.ts @@ -10105,9 +10105,17 @@ void loop() { { type: 'wokwi-ili9341', id: 'tft1', - x: 320, - y: 60, - properties: {}, + x: 360, + y: 100, + // Rotated 90 CW, which fixes both complaints at once. The module is + // portrait with its header along the BOTTOM edge, and the sketch draws + // setRotation(1) landscape - per the part's own MADCTL mapping + // (ComplexParts writePixel: rot-1 content's top edge lies on the + // canvas's LEFT edge), so upright viewing needs the module turned a + // quarter clockwise, exactly like the physical bench setup. The same + // turn brings the header to the LEFT edge, facing the board, so the + // wires run straight between the two instead of over the glass. + properties: { rotation: 90 }, }, ], wires: [