4246 |
jacho |
1 |
//Funkce otvuru pro ruzne prvky umistene do celicek |
|
|
2 |
|
|
|
3 |
//1B) - LCD 2x16 |
|
|
4 |
//-------------------------------------------------------- |
|
|
5 |
module otvor_LCD2_16_diry(vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska) |
|
|
6 |
{ |
|
|
7 |
//otvor na LCD |
|
|
8 |
translate([0,0,(vyska-2*zapust-vule_vysky_celicka)/2]) |
|
|
9 |
cube(size = [ramecek_x,tloustka_celicka,ramecek_y], center = true); |
|
|
10 |
|
|
|
11 |
//diry na srouby pro LCD |
|
|
12 |
|
|
|
13 |
translate([vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)+vzdalenost_der_y/2)]) |
|
|
14 |
rotate(a=[90,0,0]) |
|
|
15 |
cylinder(h=ramecek_vyska+0.2, r=(prumer_otvoru/2), center=true); |
|
|
16 |
|
|
|
17 |
translate([-vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)+vzdalenost_der_y/2)]) |
|
|
18 |
rotate(a=[90,0,0]) |
|
|
19 |
cylinder(h=ramecek_vyska+0.2, r=(prumer_otvoru/2), center=true); |
|
|
20 |
|
|
|
21 |
translate([vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)-vzdalenost_der_y/2)]) |
|
|
22 |
rotate(a=[90,0,0]) |
|
|
23 |
cylinder(h=ramecek_vyska+0.2, r=(prumer_otvoru/2), center=true); |
|
|
24 |
|
|
|
25 |
translate([-vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)-vzdalenost_der_y/2)]) |
|
|
26 |
rotate(a=[90,0,0]) |
|
|
27 |
cylinder(h=ramecek_vyska+0.2, r=(prumer_otvoru/2), center=true); |
|
|
28 |
} |
|
|
29 |
|
|
|
30 |
module otvor_LCD2_16_sloupky(vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska) |
|
|
31 |
{ |
|
|
32 |
union() { |
|
|
33 |
|
|
|
34 |
translate([vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)+vzdalenost_der_y/2)]) |
|
|
35 |
rotate(a=[90,0,0]) |
|
|
36 |
cylinder(h=ramecek_vyska, r=(prumer_sloupku/2), center=true); |
|
|
37 |
|
|
|
38 |
translate([-vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)+vzdalenost_der_y/2)]) |
|
|
39 |
rotate(a=[90,0,0]) |
|
|
40 |
cylinder(h=ramecek_vyska, r=(prumer_sloupku/2), center=true); |
|
|
41 |
|
|
|
42 |
translate([vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)-vzdalenost_der_y/2)]) |
|
|
43 |
rotate(a=[90,0,0]) |
|
|
44 |
cylinder(h=ramecek_vyska, r=(prumer_sloupku/2), center=true); |
|
|
45 |
|
|
|
46 |
translate([-vzdalenost_der_x/2,(ramecek_vyska/2-((tloustka_celicka-vule_tlousky)/2)),(((vyska-2*zapust-vule_vysky_celicka)/2)-vzdalenost_der_y/2)]) |
|
|
47 |
rotate(a=[90,0,0]) |
|
|
48 |
cylinder(h=ramecek_vyska, r=(prumer_sloupku/2), center=true); |
|
|
49 |
|
|
|
50 |
} |
|
|
51 |
} |