Arduano - Just came back from lunch, still figh...
Just came back from lunch, still fighting the rp2040 stuff.
The footprint on the tscircuit repo seems off, the spacings are a bit wrong. So I went to look for a kicad footprint online.
Found these: https://github.com/crides/kleeb/blob/master/mcu.pretty/rp2040-zero-tht.kicad_mod
https://docs.tscircuit.com/guides/importing-modules-and-chips/importing-from-kicad
Following the docs on kicad imports, I ran this command:
It seemed to ignore input dir compleetely and asked for the repo name. I entered
crides/kleeb and it generated the folder correctly.
The generated code looks something like this (under ./examples):
But it seems like <component> isn't a real tag anymore and I can't figure out how to embed this footprint into my circuit board. Other tags don't seem to work with this footprint config6 Replies
When I do something like
<breakout footprint={rp2040_zero_tht} /> or <chip footprint={rp2040_zero_tht} />, I get the following error in the UI:
I don't have any mention of silkscreentext anywhere in my repo including the codegen so I'm not sure
nvm figured it out: I needed to include a "name" prop on the component itself, e.g. <chip footprint={rp2040_zero_tht} name="RPZ" />. Typescript wasn't being helpful.
Bug: codgen doesn't properly do type definitions so I get an error like this:
suggested solution: either use as FootprintProp on the export or an as const after every stringyea you're using an old library there,
kicad-mod-converter is deprecatedah, probably good to adjust the docs then
that's in the docs!?
Importing from KiCad | tscircuit docs
You can import KiCad components or projects into tscircuit.
omg it is
š¤¦āāļø
you can directly import kicad_mod files