definitions & routines shared by projects
リビジョン | a1e57bea219fc9585bad3b712a93f84ef7a8649b (tree) |
---|---|
日時 | 2020-03-19 06:29:35 |
作者 | Pawel Jewstafjew <Pawel.Jewstafjew@gmai...> |
コミッター | Pawel Jewstafjew |
include/time_diff.h: time_inc_us(); kicad/stock.pretty/Relay_HFD27.kicad_mod
@@ -83,3 +83,9 @@ void time_add_us(timestamp_t & res, const timestamp_t & t, unsigned d) | ||
83 | 83 | res.tv_usec = us % 1000000; |
84 | 84 | #endif |
85 | 85 | } |
86 | + | |
87 | +inline | |
88 | +void time_inc_us(timestamp_t & res, unsigned d) | |
89 | +{ | |
90 | + time_add_us(res, res, d); | |
91 | +} |
@@ -0,0 +1,38 @@ | ||
1 | +(module Relay_HFD27 (layer F.Cu) (tedit 5E7273C8) | |
2 | + (descr "Relay HFD27") | |
3 | + (tags "THT Relay 300mil") | |
4 | + (fp_text reference REF** (at 3.81 -2.33) (layer F.SilkS) | |
5 | + (effects (font (size 1 1) (thickness 0.15))) | |
6 | + ) | |
7 | + (fp_text value Relay_HFD27 (at 3.81 20.11) (layer F.Fab) | |
8 | + (effects (font (size 1 1) (thickness 0.15))) | |
9 | + ) | |
10 | + (fp_line (start -1.27 -1.33) (end -1.27 19.11) (layer F.Fab) (width 0.1)) | |
11 | + (fp_line (start -1.27 19.11) (end 8.89 19.11) (layer F.Fab) (width 0.1)) | |
12 | + (fp_line (start 8.89 19.11) (end 8.89 -1.33) (layer F.Fab) (width 0.1)) | |
13 | + (fp_line (start 8.89 -1.33) (end -1.27 -1.33) (layer F.Fab) (width 0.1)) | |
14 | + (fp_line (start -1.44 -1.39) (end -1.44 19.17) (layer F.SilkS) (width 0.12)) | |
15 | + (fp_line (start -1.44 19.17) (end 9.06 19.17) (layer F.SilkS) (width 0.12)) | |
16 | + (fp_line (start 9.06 19.17) (end 9.06 -1.39) (layer F.SilkS) (width 0.12)) | |
17 | + (fp_line (start 9.06 -1.39) (end -1.44 -1.39) (layer F.SilkS) (width 0.12)) | |
18 | + (fp_line (start -1.55 -1.6) (end -1.55 19.4) (layer F.CrtYd) (width 0.05)) | |
19 | + (fp_line (start -1.55 19.4) (end 9.15 19.4) (layer F.CrtYd) (width 0.05)) | |
20 | + (fp_line (start 9.15 19.4) (end 9.15 -1.6) (layer F.CrtYd) (width 0.05)) | |
21 | + (fp_line (start 9.15 -1.6) (end -1.55 -1.6) (layer F.CrtYd) (width 0.05)) | |
22 | + (fp_text user %R (at 3.81 8.89) (layer F.Fab) | |
23 | + (effects (font (size 1 1) (thickness 0.15))) | |
24 | + ) | |
25 | + (pad 1 thru_hole oval (at 0 0) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
26 | + (pad 9 thru_hole oval (at 7.62 17.78) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
27 | + (pad 11 thru_hole oval (at 7.62 12.7) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
28 | + (pad 4 thru_hole oval (at 0 7.62) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
29 | + (pad 13 thru_hole oval (at 7.62 7.62) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
30 | + (pad 6 thru_hole oval (at 0 12.7) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
31 | + (pad 8 thru_hole oval (at 0 17.78) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
32 | + (pad 16 thru_hole oval (at 7.62 0) (size 2.4 1.6) (drill 1.0) (layers *.Cu *.Mask)) | |
33 | + (model ${KISYS3DMOD}/Package_DIP.3dshapes/DIP-16_W7.62mm_Socket.wrl | |
34 | + (at (xyz 0 0 0)) | |
35 | + (scale (xyz 1 1 1)) | |
36 | + (rotate (xyz 0 0 0)) | |
37 | + ) | |
38 | +) |