Skip to content

Commit

Permalink
Add GIT_HASH to schema and PCB
Browse files Browse the repository at this point in the history
  • Loading branch information
laenzlinger committed Jan 8, 2024
1 parent c8ec802 commit ba03a3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pedalboard-led-ring.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ preflight:
run_drc: false
check_zone_fills: true
ignore_unconnected: false
set_text_variables:
name: GIT_HASH
command: git rev-parse --short HEAD

outputs:
- name: basic_boardview
Expand Down
3 changes: 2 additions & 1 deletion pedalboard-led-ring.kicad_pcb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
(company "https://github.com/pedalboard")
(comment 1 "Source Code: https://github.com/pedalboard/pedalboard-led-ring")
(comment 2 "License: CERN Open Hardware Licence Version 2 - Permissive")
(comment 3 "Git commit: {GIT_HASH}")
)

(layers
Expand Down Expand Up @@ -2154,7 +2155,7 @@
(gr_text "VCC" (at 90.39 54.34 90) (layer "B.SilkS") (tstamp bbae7ead-ec96-4419-af07-bd2260977052)
(effects (font (size 0.6 0.6) (thickness 0.1)) (justify left bottom mirror))
)
(gr_text "PCB: v${REVISION}" (at 79.66 71.13) (layer "B.SilkS") (tstamp e9a3a019-b47a-403f-9511-fede2b4cc951)
(gr_text "PCB: v${REVISION} \n{GIT_HASH}" (at 79.95 70.64) (layer "B.SilkS") (tstamp e9a3a019-b47a-403f-9511-fede2b4cc951)
(effects (font (size 0.5 0.5) (thickness 0.1) bold) (justify bottom mirror))
)
(gr_text "${TITLE}" (at 79.73 51.62) (layer "B.SilkS") (tstamp f552d1e6-8939-4c5f-b333-ac0cad47efd2)
Expand Down
1 change: 1 addition & 0 deletions pedalboard-led-ring.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
(company "https://github.com/pedalboard")
(comment 1 "Source Code: https://github.com/pedalboard/pedalboard-neopixel-ring")
(comment 2 "License: CERN Open Hardware Licence Version 2 - Permissive")
(comment 3 "Git commit: {GIT_HASH}")
)
(lib_symbols
Expand Down

0 comments on commit ba03a3b

Please sign in to comment.