4357 |
jacho |
1 |
use <configuration/celicko.scad> |
|
|
2 |
use <configuration/sloupek.scad> |
|
|
3 |
use <configuration/lista.scad> |
|
|
4 |
use <configuration/plbase.scad> |
|
|
5 |
use <uravena_celicka.scad> |
|
|
6 |
use <configuration/otvory.scad> |
|
|
7 |
|
|
|
8 |
include <configuration/manufactury_conf.scad> |
|
|
9 |
include <configuration.scad> |
|
|
10 |
include <configuration/otvory_conf.scad> |
|
|
11 |
|
|
|
12 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
|
|
13 |
|
|
|
14 |
//Vytvoreni predniho celicka krabicky |
|
|
15 |
//-------------------------------------------------------- |
|
|
16 |
module celicko_predni() |
|
|
17 |
difference() { |
|
|
18 |
union() { |
|
|
19 |
|
|
|
20 |
celicko (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); |
|
|
21 |
|
|
|
22 |
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); |
|
|
23 |
} |
|
|
24 |
|
|
|
25 |
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); |
|
|
26 |
|
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
//Vytvoreni zadniho celicka krabicky |
|
|
33 |
//-------------------------------------------------------- |
|
|
34 |
module celicko_zadni() |
|
|
35 |
{ |
|
|
36 |
translate([0,0,0]) |
|
|
37 |
difference() { |
|
|
38 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
39 |
|
|
|
40 |
pocet_der_dane_strany=15; |
|
|
41 |
posun_od_kraje=1; |
|
|
42 |
USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
|
|
43 |
} |
|
|
44 |
} |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
//Vytvoreni leveho celicka krabicky |
|
|
48 |
//-------------------------------------------------------- |
|
|
49 |
module celicko_leve() |
|
|
50 |
{ |
|
|
51 |
translate([0,0,0]) |
|
|
52 |
difference() { |
|
|
53 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
54 |
|
|
|
55 |
pocet_der_dane_strany=11; |
|
|
56 |
posun_od_kraje=1; |
|
|
57 |
|
|
|
58 |
RS232SINGLE01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
|
|
59 |
} |
|
|
60 |
} |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
//Vytvoreni praveho celicka krabicky |
|
|
65 |
//-------------------------------------------------------- |
|
|
66 |
module celicko_prave() |
|
|
67 |
{ |
|
|
68 |
translate([0,0,0]) |
|
|
69 |
difference() { |
|
|
70 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
71 |
|
|
|
72 |
MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka); |
|
|
73 |
|
|
|
74 |
pocet_der_dane_strany=11; |
|
|
75 |
posun_od_kraje=1; |
|
|
76 |
UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
|
|
77 |
} |
|
|
78 |
} |
|
|
79 |
barva_predni = "cyan"; |
|
|
80 |
barva_zadni = "red"; |
|
|
81 |
barva_leve = "green"; |
|
|
82 |
barva_prave = "yellow"; |
|
|
83 |
|
|
|
84 |
//Zobrazeni vzhledu navrhovanych celicek |
|
|
85 |
color(barva_predni) |
|
|
86 |
translate([0,-50,0]) |
|
|
87 |
celicko_predni(); |
|
|
88 |
|
|
|
89 |
color(barva_zadni) |
|
|
90 |
translate([0,50,0]) |
|
|
91 |
rotate(a=[0,0,180]) |
|
|
92 |
celicko_zadni(); |
|
|
93 |
|
|
|
94 |
color(barva_leve) |
|
|
95 |
translate([-60,0,0]) |
|
|
96 |
rotate(a=[0,0,270]) |
|
|
97 |
celicko_leve(); |
|
|
98 |
|
|
|
99 |
color(barva_prave) |
|
|
100 |
translate([60,0,0]) |
|
|
101 |
rotate(a=[0,0,90]) |
|
|
102 |
celicko_prave(); |
|
|
103 |
|