# Vivek Vijayan - Is it possible to expose ports/... Channel: #support Source: https://discord.com/channels/1233487248129921135/1525887286158426272 Started: 2026-07-12T15:31:19.109000+00:00 Last activity: 2026-07-14T03:12:43.581000+00:00 ## Vivek Vijayan — 2026-07-12T15:31:18.635000+00:00 Is it possible to expose ports/pins from ? ## Vivek Vijayan — 2026-07-12T15:35:26.989000+00:00 I'm looking for something like this ``` export const power_circuit = () => { return ( ); }; ``` ## shibo — 2026-07-12T15:38:29.910000+00:00 https://docs.tscircuit.com/elements/group I believe you could use the component, it's documented for groups but I believe it should work for subcircuits too Attachment: image.png — https://community.tscircuit.com/media/1525889095404884008 ## Vivek Vijayan — 2026-07-12T15:40:44.076000+00:00 let me try.. ## Vivek Vijayan — 2026-07-12T16:08:35.598000+00:00 yes.. this is working for as well.. thanks <@778624824875941908> ## shibo — 2026-07-12T16:10:07.416000+00:00 awesome, we'll be sure to document it under to avoid future confusion ## Seve — 2026-07-12T16:10:54.432000+00:00 you can also use `exposedNets` for subcircuits, or just write selectors that include the subcircuit e.g. `to=".MySubcircuitName .U1 .pin1"`, but shibo's suggestion is good!!! ## Vivek Vijayan — 2026-07-12T16:13:14.590000+00:00 first I thought about this `to=".subcircuit .u1 .pin1` approach. But the port based isolation feels more intuitive and clean.. ## Seve — 2026-07-12T16:15:13.479000+00:00 i agree! ## Vivek Vijayan — 2026-07-13T07:54:40.396000+00:00 ``` interface ModuleProps { name?: string } export const RCfilter = ({name}: ModuleProps) => {return ( ); }; export default () => ( ) ``` What is wrong in this code? I'm getting following errors: ``` pcb_trace_missing_error:Trace [.FILTER > .IO to R1.pin1] is not connected (it has no PCB trace) @tscircuit/eval@0.0.996 • @tscircuit/core@0.0.1425 pcb_trace_missing_error:Trace [.FILTER > .VCC to C1.pin2] is not connected (it has no PCB trace) @tscircuit/eval@0.0.996 • @tscircuit/core@0.0.1425 pcb_trace_missing_error:Trace [FILTER.IO to R13.pin1] is not connected (it has no PCB trace) @tscircuit/eval@0.0.996 • @tscircuit/core@0.0.1425 ``` Also rendered PCB and schematic are wrong. Attachment: image.png — https://community.tscircuit.com/media/1526134756797055006 Attachment: image.png — https://community.tscircuit.com/media/1526134757178478682 ## Seve — 2026-07-13T07:57:44.189000+00:00 Hmn this seems like a legit bug to me at a glance ## Vivek Vijayan — 2026-07-13T07:59:33.849000+00:00 Also, I've one more doubt. https://docs.tscircuit.com/elements/group#example-led-matrix-module This section explains how to setup led matrix module. But nothing is specified about the internal circuit, how each LED is connected inside and how led ports are connected to module ports. Specifically I'm interested in the method to connect the internal component pins with the module ports. ## Vivek Vijayan — 2026-07-13T09:38:23.269000+00:00 Any suggestions or workarounds for this? I'm stuck in this.. ## shibo — 2026-07-13T10:18:19.304000+00:00 that section is incomplete, as you can see the pcb is not connected, it's just showcasing how to expose pins on the schematic box Attachment: image.png — https://community.tscircuit.com/media/1526170907486195763 Attachment: image.png — https://community.tscircuit.com/media/1526170907947831366 ## shibo — 2026-07-13T10:26:06.053000+00:00 can you try something like this: ``` {/* remaining LEDs */} ``` ## shibo — 2026-07-13T10:26:13.388000+00:00 you basically just connect the port internally ## shibo — 2026-07-13T10:26:24.359000+00:00 we'll get a doc on this asap ## shibo — 2026-07-13T19:10:50.657000+00:00 <@1050759023194030111> did this work? I did some more interal testing and it seems to work ## shibo — 2026-07-13T19:10:53.739000+00:00 going to document it now ## Vivek Vijayan — 2026-07-14T01:02:13.104000+00:00 <@778624824875941908> yes It worked... Thanks.. ## shibo — 2026-07-14T03:12:43.581000+00:00 Np