暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fetch_jlc.sh 4.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #!/bin/bash
  2. # SPDX-FileCopyrightText: 2023 - 2024 Thomas Buck <thomas@xythobuz.de>
  3. # SPDX-License-Identifier: CERN-OHL-S-2.0+
  4. #
  5. # ------------------------------------------------------------------------------
  6. # | Copyright (c) 2023 - 2024 Thomas Buck <thomas@xythobuz.de> |
  7. # | |
  8. # | This source describes Open Hardware and is licensed under the CERN-OHL-S v2 |
  9. # | or any later version. |
  10. # | |
  11. # | You may redistribute and modify this source and make products using it under |
  12. # | the terms of the CERN-OHL-S v2 (https://ohwr.org/cern_ohl_s_v2.txt) |
  13. # | or any later version. |
  14. # | |
  15. # | This source is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, |
  16. # | INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A |
  17. # | PARTICULAR PURPOSE. Please see the CERN-OHL-S v2 (or any later version) |
  18. # | for applicable conditions. |
  19. # | |
  20. # | Source location: https://github.com/drinkrobotics/dispensy |
  21. # | |
  22. # | As per CERN-OHL-S v2 section 4, should You produce hardware based on this |
  23. # | source, You must where practicable maintain the Source Location visible |
  24. # | on the external case of the Gizmo or other products you make using this |
  25. # | source. |
  26. # ------------------------------------------------------------------------------
  27. # Depends on:
  28. # https://github.com/TousstNicolas/JLC2KiCad_lib
  29. # (or https://github.com/Xyntexx/JLC2KiCad_lib/tree/footprint_alignment_workarounds)
  30. # enter directory of script
  31. cd "$(dirname "$0")"
  32. # create output directory
  33. mkdir -p jlc_lib
  34. # fetch / update parts libs
  35. JLC2KiCadLib \
  36. C2040 `# RP2040` \
  37. C113767 `# W25Q128JVSIQ 128Mbit SPI NOR FLASH` \
  38. C26537 `# NCP1117ST33T3G 3.3V 1A LDO !! LOW STOCK !!` \
  39. C22452 `# SS54 40V 5A Schottky Barrier Diode` \
  40. C132227 `# TJA1042T/3/1J CAN Transceiver` \
  41. C86580 `# DS1129-05-S80BP-X RJ45 2x Socket` \
  42. C194472 `# LM2576S-5.0/TR Step Down` \
  43. C134092 `# Molex USB-C Socket` \
  44. C386740 `# USB-A Female` \
  45. C148313 `# ABM3-12.000MHZ-D2Y-T 12MHz Ceramic Resonator` \
  46. C279981 `# 1kΩ 0402 62.5mW ±1%` \
  47. C140675 `# 27pF 0402 50V Ceramic Capacitor` \
  48. C409700 `# 5.1kΩ 0402 62.5mW ±1%` \
  49. C172043 `# 27.4Ω 0402 62.5mW ±1%` \
  50. C105883 `# 100nF 0402 25V Ceramic Capacitor` \
  51. C83063 `# 1uF 0402 16V Ceramic Capacitor` \
  52. C2920042 `# WS2812E-V5 RGB LED` \
  53. C520861 `# SPST Tactile Switch` \
  54. C406733 `# 10kΩ 0402 62.5mW ±1%` \
  55. C380316 `# 10uF 0603 10V Ceramic Capacitor` \
  56. C144787 `# 1MΩ 0402 62.5mW ±1%` \
  57. C2937625 `# Straight Square Pins 2.54mm 3P` \
  58. C234182 `# Straight Square Pins 2.54mm 2P` \
  59. C146690 `# Female Header 2.54mm 3P` \
  60. C40877 `# Female Header 2.54mm 6P` \
  61. C144481 `# 60.4Ω 1206 250mW ±1%` \
  62. C697422 `# 47nF 0402 50V Ceramic Capacitor` \
  63. C237221 `# 4.7nF 0402 50V Ceramic Capacitor` \
  64. C106200 `# 100pF 0402 50V Ceramic Capacitor` \
  65. C5613 `# 74HC165D Parallel to Serial Shift Register` \
  66. C2909114 `# SMD Rotary Encoder` \
  67. C475721 `# MBR340F 40V 3A Schottky Barrier Diode` \
  68. C497903 `# Inductor 100uH ±20% 2A` \
  69. C249838 `# 100uF 80V Electrolytic Capacitor` \
  70. C310843 `# 1000uF 16V Electrolytic Capacitor` \
  71. C496132 `# 1x4P Barrier Block 7.62mm 20A 300V` \
  72. C347222 `# AMS1117-3.3 3.3V 1A LDO` \
  73. C557648 `# 1x2P 10A 300V 5mm Screw terminal` \
  74. C2982285 `# ASMD1812-350-16V 16V 3.5A/6A Resettable Fuse` \
  75. C84264 `# LED Green 0603` \
  76. C881044 `# 147kΩ 0402 62.5mW ±1%` \
  77. -dir jlc_lib \
  78. -symbol_lib jlc_schematics \
  79. -symbol_lib_dir Schematic \
  80. -footprint_lib jlc_footprints \
  81. --skip_existing