removed .git from subdirectories
[hardpass.git] / kicad / hardpass-pcb / kicad-ESP8266 / ESP8266.3dshapes / ESP-13-wroom-02.scad
1 fragments=20;
2 module halfPad() {
3 color("Gold", a=1) {
4 difference() {
5 translate([0, 0, 0.5]) {
6 cube(size=[0.85,0.90,1], center=true);
7 };
8 };
9 };
10 };
11
12 module padHoles(x, y, zRot = 0) {
13 rotate([0, 0, zRot]) {
14 translate([x, y, 0.5]) {
15 cylinder(h=2,d=0.6,center=true,$fn=fragments);
16 };
17 };
18 };
19
20 module pad(x, y, zRot = 0) {
21 rotate([0, 0, zRot]) {
22 translate([x, y, 0]) {
23 halfPad();
24 };
25 };
26 };
27
28 module pads() {
29
30 pad(17.58,-12);
31 pad(17.58,-10.5);
32 pad(17.58,-9);
33 pad(17.58,-7.5);
34 pad(17.58,-6);
35 pad(17.58,-4.5);
36 pad(17.58,-3);
37 pad(17.58,-1.5);
38 pad(17.58,0);
39
40 pad(-0.42,0,180);
41 pad(-0.42,1.5,180);
42 pad(-0.42,3,180);
43 pad(-0.42,4.5,180);
44 pad(-0.42,6,180);
45 pad(-0.42,7.5,180);
46 pad(-0.42,9,180);
47 pad(-0.42,10.5,180);
48 pad(-0.42,12,180);
49
50 };
51
52 module holes() {
53
54 padHoles(18,-12);
55 padHoles(18,-10.5);
56 padHoles(18,-9);
57 padHoles(18,-7.5);
58 padHoles(18,-6);
59 padHoles(18,-4.5);
60 padHoles(18,-3);
61 padHoles(18,-1.5);
62 padHoles(18,0);
63
64 padHoles(0,0,180);
65 padHoles(0,1.5,180);
66 padHoles(0,3,180);
67 padHoles(0,4.5,180);
68 padHoles(0,6,180);
69 padHoles(0,7.5,180);
70 padHoles(0,9,180);
71 padHoles(0,10.5,180);
72 padHoles(0,12,180);
73 };
74
75 // Translate so that pin 1 and the bottom of the board
76 // is the reference point (0,0,0)
77 translate([0,0,0]) {
78 // pcb
79 difference() {
80 union() {
81 color("Blue", a=1) {
82 translate([0, -13, 0]) {
83 cube(size=[18, 20, .98], center = false);
84 };
85 };
86 pads();
87 };
88 holes();
89 };
90
91 //shield
92 translate([1.5, -12, 1]) {
93 color("Silver", a=1) {
94 cube(size=[15, 12, 1.5], center = false);
95 };
96 };
97 };
Imprint / Impressum