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