Skip to content

Commit

Permalink
Do not version generated kicad_pcb files and generate v2 svg
Browse files Browse the repository at this point in the history
  • Loading branch information
adamws committed Jul 23, 2024
1 parent 2931d1b commit bd968a9
Show file tree
Hide file tree
Showing 6 changed files with 5,965 additions and 4,043 deletions.
15 changes: 8 additions & 7 deletions .justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
template_atmega32u4_au_v1 := "./kicad-templates/atmega32u4-au-v1/atmega32u4-au-v1.kicad_pcb"
template_atmega32u4_au_v1 := "./atmega32u4_au_v1.kicad_pcb"

test:
hatch run default:test
Expand All @@ -13,14 +13,15 @@ svg kicad_pcb:

circuits variant:
hatch run kicad:circuits --variant {{variant}}
just svg atmega32u4_au_{{variant}}.kicad_pcb
firefox atmega32u4_au_{{variant}}.svg
just templates-svgs {{variant}}

positions:
hatch run kicad:positions

templates-svgs:
just svg {{template_atmega32u4_au_v1}}
just svg-mm-to-cm {{without_extension(template_atmega32u4_au_v1)}}.svg
firefox {{without_extension(template_atmega32u4_au_v1)}}.svg
templates-svgs variant:
just svg atmega32u4_au_{{variant}}.kicad_pcb
just svg-mm-to-cm atmega32u4_au_{{variant}}.svg
cp atmega32u4_au_{{variant}}.svg ./kicad-templates/
rm atmega32u4_au_{{variant}}.svg
firefox ./kicad-templates/atmega32u4_au_{{variant}}.svg

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Options
</tr>
<tr>
<td>atmega32u4_au_v1:<br>[todo]</td>
<td><img src="kicad-templates/atmega32u4-au-v1/atmega32u4-au-v1.svg"/></td>
<td><img src="kicad-templates/atmega32u4_au_v1.svg"/></td>
</tr>
<tr>
<td>atmega32u4_au_v2:<br>[todo]</td>
<td><img src="kicad-templates/atmega32u4_au_v2.svg"/></td>
</tr>
</table>
Loading

0 comments on commit bd968a9

Please sign in to comment.