library masks for hk_vu7c, hk_vu8m, hk_vu8s
This commit is contained in:
107
lib/oem_hk.scad
107
lib/oem_hk.scad
@@ -21,9 +21,9 @@
|
|||||||
hk_hc4_oled(mask)
|
hk_hc4_oled(mask)
|
||||||
hk_hc4_oled_holder(side, floorthick, mask)
|
hk_hc4_oled_holder(side, floorthick, mask)
|
||||||
hk_35lcd(mask)
|
hk_35lcd(mask)
|
||||||
hk_vu7c(gpio_ext, tabs)
|
hk_vu7c(gpio_ext, tabs, mask)
|
||||||
hk_vu8m(bracket)
|
hk_vu8m(bracket, mask)
|
||||||
hk_vu8s()
|
hk_vu8s(mask)
|
||||||
hk_wb2()
|
hk_wb2()
|
||||||
hk_netcard(mask)
|
hk_netcard(mask)
|
||||||
u_bracket()
|
u_bracket()
|
||||||
@@ -348,13 +348,22 @@ module hk_35lcd(mask) {
|
|||||||
DESCRIPTION: hardkernel vu7c lcd display
|
DESCRIPTION: hardkernel vu7c lcd display
|
||||||
TODO: none
|
TODO: none
|
||||||
|
|
||||||
USAGE: hk_vu7c(gpio_ext, tabs)
|
USAGE: hk_vu7c(gpio_ext, tabs, mask)
|
||||||
|
|
||||||
gpio_ext = true, false
|
gpio_ext = true, false
|
||||||
tabs = true, false
|
tabs = true, false
|
||||||
|
mask[0] = true enables component mask
|
||||||
|
mask[1] = mask length
|
||||||
|
mask[2] = mask setback
|
||||||
|
mask[3] = mstyle "default"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module hk_vu7c(gpio_ext, tabs) {
|
module hk_vu7c(gpio_ext, tabs, mask) {
|
||||||
|
|
||||||
|
enablemask = mask[0];
|
||||||
|
mlength = mask[1];
|
||||||
|
msetback = mask[2];
|
||||||
|
mstyle = mask[3];
|
||||||
|
|
||||||
lcd_size = [164.85,100,5.48];
|
lcd_size = [164.85,100,5.48];
|
||||||
pcb_size = [184.6,75,1.6];
|
pcb_size = [184.6,75,1.6];
|
||||||
@@ -362,14 +371,21 @@ module hk_vu7c(gpio_ext, tabs) {
|
|||||||
hole = 3.2;
|
hole = 3.2;
|
||||||
length = 24-hole;
|
length = 24-hole;
|
||||||
depth = 2;
|
depth = 2;
|
||||||
|
|
||||||
adj = .1;
|
adj = .1;
|
||||||
$fn = 90;
|
$fn = 90;
|
||||||
|
|
||||||
|
if(enablemask == true && mstyle == "default") {
|
||||||
|
translate([2.5,7,pcb_size[2]+3.12+lcd_size[2]-adj]) cube([view_size[0]+1, view_size[1]+1, mlength]);
|
||||||
|
// translate([55.8,103.5,-adj-msetback]) cylinder(d=hole, h=mlength);
|
||||||
|
// translate([108.8,103.5,-adj-msetback]) cylinder(d=hole, h=mlength);
|
||||||
|
}
|
||||||
|
if(enablemask == false) {
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
color("lightgray") translate([0,0,pcb_size[2]+3.12]) cube(lcd_size);
|
color("lightgray") translate([0,0,pcb_size[2]+3.12]) cube(lcd_size);
|
||||||
if(tabs == true) {
|
if(tabs == true) {
|
||||||
color("black") translate([-(pcb_size[0]-lcd_size[0])/2,lcd_size[1]-pcb_size[1]-1,0])
|
color("#181818") translate([-(pcb_size[0]-lcd_size[0])/2,lcd_size[1]-pcb_size[1]-1,0])
|
||||||
cube(pcb_size);
|
cube(pcb_size);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -398,26 +414,24 @@ module hk_vu7c(gpio_ext, tabs) {
|
|||||||
color("dimgray") translate([17.8,lcd_size[1]-pcb_size[1]-2,-adj]) slab_r([78.8,6,2],[1,1,1,1]);
|
color("dimgray") translate([17.8,lcd_size[1]-pcb_size[1]-2,-adj]) slab_r([78.8,6,2],[1,1,1,1]);
|
||||||
}
|
}
|
||||||
// components
|
// components
|
||||||
translate([70+14.5,28.58,0]) rotate([180,0,180]) hdmi_a();
|
video("hdmi_a", 70, 28.58, 0, "bottom", 0, [0,0,0], [0], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([47.49-1,42.09-.75,0]) rotate([180,0,90]) header_f(7,15);
|
header("open", 46.49, 41.34, 0, "bottom", 0, [7,1,15], ["thruhole","black","female",2.54,"silver"], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([39.5,80.19-1,0]) rotate([180,0,90]) header_f(20,15);
|
header("open", 39.5, 79.19, 0, "bottom", 0, [20,2,15], ["thruhole","black","female",2.54,"silver"], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([39.5,82.73-1,0]) rotate([180,0,90]) header_f(20,15);
|
header("open", 13.11, 35.46, 0, "bottom", 0, [1,7,6], ["thruhole","black","male",2.54,"silver"], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([13.15+2.75-.25,36.71-1.25,0]) rotate([180,0,180]) header(7);
|
header("open", 23.58, 73.17, 0, "bottom", 0, [1,5,6], ["thruhole","black","male",2.54,"silver"], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([23.58+2.5,74.42-1.25,0]) rotate([180,0,180]) header(5);
|
|
||||||
translate([98+2,26.04-2,0]) rotate([180,0,180]) pcb_pad(7);
|
|
||||||
color("dimgray") translate([16.25,69.4,-1.99]) cube([4,4,2]);
|
color("dimgray") translate([16.25,69.4,-1.99]) cube([4,4,2]);
|
||||||
translate([18.5,58,-1.99]) cube([25,5.5,2]);
|
translate([18.5,58,-1.99]) cube([25,5.5,2]);
|
||||||
translate([80.5,52.5,-1.99]) cube([4.5,3.5,2]);
|
translate([80.5,52.5,-1.99]) cube([4.5,3.5,2]);
|
||||||
|
|
||||||
// gpio extension
|
// gpio extension
|
||||||
if(gpio_ext == true) {
|
if(gpio_ext == true) {
|
||||||
translate([57.37-1.25,94.93-1.25,0]) rotate([180,0,90]) header(20);
|
header("open", 56.12, 91.14, 0, "bottom", 0, [20,2,6], ["thruhole","black","male",2.54,"silver"], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([57.37-1.25,92.39-1.25,0]) rotate([180,0,90]) header(20);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
translate([57.37-2,94.93-2,0]) rotate([180,0,90]) pcb_pad(20);
|
pcbpad("round", 57.37, 92.39, 0, "bottom", 0, [20,2,6], [1.27,"#fee5a6",2.1], pcb_size[2], false, [true,10,2,"default"]);
|
||||||
translate([57.37-2,92.39-2,0]) rotate([180,0,90]) pcb_pad(20);
|
}
|
||||||
|
translate([59,52.69,-1.59]) color("dimgray") cube([9,9,.8]);
|
||||||
}
|
}
|
||||||
translate([59,52.69,-1.59]) ic(9);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -426,14 +440,22 @@ module hk_vu7c(gpio_ext, tabs) {
|
|||||||
DESCRIPTION: hardkernel vu8m lcd display
|
DESCRIPTION: hardkernel vu8m lcd display
|
||||||
TODO: none
|
TODO: none
|
||||||
|
|
||||||
USAGE: hk_vu8m(brackets)
|
USAGE: hk_vu8m(brackets, mask)
|
||||||
|
|
||||||
brackets = true, false
|
brackets = true, false
|
||||||
|
mask[0] = true enables component mask
|
||||||
|
mask[1] = mask length
|
||||||
|
mask[2] = mask setback
|
||||||
|
mask[3] = mstyle "default"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module hk_vu8m(brackets) {
|
module hk_vu8m(brackets, mask) {
|
||||||
|
|
||||||
|
enablemask = mask[0];
|
||||||
|
mlength = mask[1];
|
||||||
|
msetback = mask[2];
|
||||||
|
mstyle = mask[3];
|
||||||
|
|
||||||
$fn = 90;
|
|
||||||
m1_screw_spacing = 72;
|
m1_screw_spacing = 72;
|
||||||
|
|
||||||
body_size = [ 198, 133, 1.93];
|
body_size = [ 198, 133, 1.93];
|
||||||
@@ -447,7 +469,14 @@ module hk_vu8m(brackets) {
|
|||||||
pcb_size = [14,24,1.6];
|
pcb_size = [14,24,1.6];
|
||||||
hole = 4.31;
|
hole = 4.31;
|
||||||
spacer_size = [5.5, 6, 2.5, 5.5, 1, 0, 1, 1, 0, 0, 0];
|
spacer_size = [5.5, 6, 2.5, 5.5, 1, 0, 1, 1, 0, 0, 0];
|
||||||
|
adj = .01;
|
||||||
|
$fn = 90;
|
||||||
|
|
||||||
|
if(enablemask == true && mstyle == "default") {
|
||||||
|
translate([-.5+(glass_size[0]-view_size[0])/2, -.5+(glass_size[1]-view_size[1])/2, body_size[2] + glass_size[2]- 0.01])
|
||||||
|
cube([view_size[0]+1, view_size[1]+1, mlength]);
|
||||||
|
}
|
||||||
|
if(enablemask == false) {
|
||||||
// "body"
|
// "body"
|
||||||
color([0.1,0.1,0.1])
|
color([0.1,0.1,0.1])
|
||||||
difference(){
|
difference(){
|
||||||
@@ -519,6 +548,7 @@ module hk_vu8m(brackets) {
|
|||||||
translate([ 183.5, body_size[1]-4.5, -8]) rotate([180,0,0]) screw([3,7,0]);
|
translate([ 183.5, body_size[1]-4.5, -8]) rotate([180,0,0]) screw([3,7,0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -591,10 +621,19 @@ module u_bracket() {
|
|||||||
DESCRIPTION: hardkernel vu8s lcd display
|
DESCRIPTION: hardkernel vu8s lcd display
|
||||||
TODO: none
|
TODO: none
|
||||||
|
|
||||||
USAGE: hk_vu8s()
|
USAGE: hk_vu8s(mask)
|
||||||
|
mask[0] = true enables component mask
|
||||||
|
mask[1] = mask length
|
||||||
|
mask[2] = mask setback
|
||||||
|
mask[3] = mstyle "default"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module hk_vu8s() {
|
module hk_vu8s(mask) {
|
||||||
|
|
||||||
|
enablemask = mask[0];
|
||||||
|
mlength = mask[1];
|
||||||
|
msetback = mask[2];
|
||||||
|
mstyle = mask[3];
|
||||||
|
|
||||||
body_size = [202, 133, 1.70];
|
body_size = [202, 133, 1.70];
|
||||||
glass_size = [195.5, 131, 1.75];
|
glass_size = [195.5, 131, 1.75];
|
||||||
@@ -611,12 +650,17 @@ module hk_vu8s() {
|
|||||||
$fn = 90;
|
$fn = 90;
|
||||||
adj = .01;
|
adj = .01;
|
||||||
|
|
||||||
|
if(enablemask == true && mstyle == "default") {
|
||||||
|
translate([13.5, 12, body_size[2] + glass_size[2]- 0.01])
|
||||||
|
cube([view_size[0]+1, view_size[1]+1, mlength]);
|
||||||
|
}
|
||||||
|
if(enablemask == false) {
|
||||||
// "body"
|
// "body"
|
||||||
color([0.1,0.1,0.1])
|
color([0.1,0.1,0.1])
|
||||||
difference(){
|
difference(){
|
||||||
union() {
|
union() {
|
||||||
slab(body_size, rb);
|
slab(body_size, rb);
|
||||||
translate([(8.25/2),-1.74-(8.25/2),0]) rotate([0,0,90]) slot(8.25,10+(8.25/2),body_size[2]);
|
#translate([(8.25/2),-1.74-(8.25/2),0]) rotate([0,0,90]) slot(8.25,10+(8.25/2),body_size[2]);
|
||||||
translate([body_size[0]-(8.25/2),-1.74-(8.25/2),0]) rotate([0,0,90]) slot(8.25,10+(8.25/2),body_size[2]);
|
translate([body_size[0]-(8.25/2),-1.74-(8.25/2),0]) rotate([0,0,90]) slot(8.25,10+(8.25/2),body_size[2]);
|
||||||
translate([(8.25/2),body_size[1]-10,0]) rotate([0,0,90]) slot(8.25,10.75+(8.25/2),body_size[2]);
|
translate([(8.25/2),body_size[1]-10,0]) rotate([0,0,90]) slot(8.25,10.75+(8.25/2),body_size[2]);
|
||||||
translate([body_size[0]-(8.25/2),body_size[1]-10,0]) rotate([0,0,90]) slot(8.25,10.75+(8.25/2),body_size[2]);
|
translate([body_size[0]-(8.25/2),body_size[1]-10,0]) rotate([0,0,90]) slot(8.25,10.75+(8.25/2),body_size[2]);
|
||||||
@@ -665,6 +709,7 @@ module hk_vu8s() {
|
|||||||
color([0.1,0.1,0.1])
|
color([0.1,0.1,0.1])
|
||||||
translate([body_size[0]-50, body_size[1]-35, -2])
|
translate([body_size[0]-50, body_size[1]-35, -2])
|
||||||
cube([4,5,.1]);
|
cube([4,5,.1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -944,11 +989,11 @@ module hk_boom(speakers, orientation) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// headers
|
// headers
|
||||||
translate([7.5,3.5,1.6-adj]) rotate([0,0,-90]) header(3);
|
translate([7.5,3.5,1.6-adj]) rotate([0,0,-90]) theader(3);
|
||||||
translate([16,3.5,1.6-adj]) rotate([0,0,-90]) header(7);
|
translate([16,3.5,1.6-adj]) rotate([0,0,-90]) theader(7);
|
||||||
translate([34,2,1.6-adj]) rotate([0,0,0]) encl_header_12();
|
translate([34,2,1.6-adj]) rotate([0,0,0]) encl_header_12();
|
||||||
translate([40,13.5,1.6-adj]) rotate([0,0,-90]) header(2);
|
translate([40,13.5,1.6-adj]) rotate([0,0,-90]) theader(2);
|
||||||
translate([45.5,13.5,1.6-adj]) rotate([0,0,-90]) header(2);
|
translate([45.5,13.5,1.6-adj]) rotate([0,0,-90]) theader(2);
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
color("dimgray", 1) translate([44.5,27,1.6+2]) rotate([0,0,0]) cylinder(d=16, h=3);
|
color("dimgray", 1) translate([44.5,27,1.6+2]) rotate([0,0,0]) cylinder(d=16, h=3);
|
||||||
@@ -965,9 +1010,9 @@ module hk_boom(speakers, orientation) {
|
|||||||
translate([7.75,21.75,1.6-adj]) audio_jack35();
|
translate([7.75,21.75,1.6-adj]) audio_jack35();
|
||||||
translate([20,30,1.6-adj]) capacitor(6.25,6.5);
|
translate([20,30,1.6-adj]) capacitor(6.25,6.5);
|
||||||
translate([30,30,1.6-adj]) capacitor(6.25,6.5);
|
translate([30,30,1.6-adj]) capacitor(6.25,6.5);
|
||||||
translate([22,16,1.6-adj]) ic([6.5,4.5,1]);
|
translate([22,16,1.6-adj]) color("dimgrey") cube([6.5,4.5,1]);
|
||||||
translate([10,12,1.6-adj]) ic([4,4,1]);
|
translate([10,12,1.6-adj]) color("dimgrey") cube([4,4,1]);
|
||||||
translate([32.5,9,1.6-adj]) ic([3.5,3,1]);
|
translate([32.5,9,1.6-adj]) color("dimgrey") cube([3.5,3,1]);
|
||||||
if(speakers == true && orientation == "rear") {
|
if(speakers == true && orientation == "rear") {
|
||||||
translate([-31.5/2,35/2,1.6]) boom_speaker();
|
translate([-31.5/2,35/2,1.6]) boom_speaker();
|
||||||
translate([60+(31.5/2),35/2,1.6]) boom_speaker();
|
translate([60+(31.5/2),35/2,1.6]) boom_speaker();
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ module case_bottom(case_design) {
|
|||||||
bottom_standoff[9],
|
bottom_standoff[9],
|
||||||
bottom_standoff[10],
|
bottom_standoff[10],
|
||||||
bottom_standoff[11]];
|
bottom_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "left_front" && bottom_front_left_enable == true) {
|
if (pcbhole_pos == "left_front" && bottom_front_left_enable == true) {
|
||||||
normal_standoff = [bottom_standoff[0],
|
normal_standoff = [bottom_standoff[0],
|
||||||
@@ -446,7 +446,7 @@ module case_bottom(case_design) {
|
|||||||
bottom_standoff[9],
|
bottom_standoff[9],
|
||||||
bottom_standoff[10],
|
bottom_standoff[10],
|
||||||
bottom_standoff[11]];
|
bottom_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "right_rear" && bottom_rear_right_enable == true) {
|
if (pcbhole_pos == "right_rear" && bottom_rear_right_enable == true) {
|
||||||
normal_standoff = [bottom_standoff[0],
|
normal_standoff = [bottom_standoff[0],
|
||||||
@@ -461,7 +461,7 @@ module case_bottom(case_design) {
|
|||||||
bottom_standoff[9],
|
bottom_standoff[9],
|
||||||
bottom_standoff[10],
|
bottom_standoff[10],
|
||||||
bottom_standoff[11]];
|
bottom_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "right_front" && bottom_front_right_enable == true) {
|
if (pcbhole_pos == "right_front" && bottom_front_right_enable == true) {
|
||||||
normal_standoff = [bottom_standoff[0],
|
normal_standoff = [bottom_standoff[0],
|
||||||
@@ -476,7 +476,7 @@ module case_bottom(case_design) {
|
|||||||
bottom_standoff[9],
|
bottom_standoff[9],
|
||||||
bottom_standoff[10],
|
bottom_standoff[10],
|
||||||
bottom_standoff[11]];
|
bottom_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -499,7 +499,7 @@ module case_bottom(case_design) {
|
|||||||
ext_bottom_standoff[10],
|
ext_bottom_standoff[10],
|
||||||
ext_bottom_standoff[11]];
|
ext_bottom_standoff[11]];
|
||||||
translate([width-ext_top_standoff_support_size/4-(2*(wallthick+gap))-(corner_fillet/2),
|
translate([width-ext_top_standoff_support_size/4-(2*(wallthick+gap))-(corner_fillet/2),
|
||||||
(corner_fillet/2)+ext_top_standoff_support_size/4,0]) standoff(normal_standoff);
|
(corner_fillet/2)+ext_top_standoff_support_size/4,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended right-front standoff
|
// extended right-front standoff
|
||||||
if(((width-pcb_loc_x-pcb_width-(gap+2*wallthick) >= 10 && depth-pcb_loc_y-pcb_depth >= 10) ||
|
if(((width-pcb_loc_x-pcb_width-(gap+2*wallthick) >= 10 && depth-pcb_loc_y-pcb_depth >= 10) ||
|
||||||
@@ -519,7 +519,7 @@ module case_bottom(case_design) {
|
|||||||
ext_bottom_standoff[10],
|
ext_bottom_standoff[10],
|
||||||
ext_bottom_standoff[11]];
|
ext_bottom_standoff[11]];
|
||||||
translate([width-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),
|
translate([width-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),
|
||||||
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),0]) standoff(normal_standoff);
|
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended left-rear standoff
|
// extended left-rear standoff
|
||||||
if((pcb_loc_x >= 10 || pcb_loc_y >= 10) && ext_bottom_rear_left_enable == true) {
|
if((pcb_loc_x >= 10 || pcb_loc_y >= 10) && ext_bottom_rear_left_enable == true) {
|
||||||
@@ -536,7 +536,7 @@ module case_bottom(case_design) {
|
|||||||
ext_bottom_standoff[10],
|
ext_bottom_standoff[10],
|
||||||
ext_bottom_standoff[11]];
|
ext_bottom_standoff[11]];
|
||||||
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
||||||
(corner_fillet/2)+ext_top_standoff_support_size/4,0]) standoff(normal_standoff);
|
(corner_fillet/2)+ext_top_standoff_support_size/4,0]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended left-front standoff
|
// extended left-front standoff
|
||||||
if(((pcb_loc_x >= 10 && depth-(pcb_loc_y+pcb_depth) >= 10) ||
|
if(((pcb_loc_x >= 10 && depth-(pcb_loc_y+pcb_depth) >= 10) ||
|
||||||
@@ -557,7 +557,7 @@ module case_bottom(case_design) {
|
|||||||
ext_bottom_standoff[11]];
|
ext_bottom_standoff[11]];
|
||||||
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
||||||
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),0])
|
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),0])
|
||||||
standoff(normal_standoff);
|
standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ module case_top(case_design) {
|
|||||||
top_standoff[9],
|
top_standoff[9],
|
||||||
top_standoff[10],
|
top_standoff[10],
|
||||||
top_standoff[11]];
|
top_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "left_front" && top_front_left_enable == true) {
|
if (pcbhole_pos == "left_front" && top_front_left_enable == true) {
|
||||||
normal_standoff = [top_standoff[0],
|
normal_standoff = [top_standoff[0],
|
||||||
@@ -389,7 +389,7 @@ module case_top(case_design) {
|
|||||||
top_standoff[9],
|
top_standoff[9],
|
||||||
top_standoff[10],
|
top_standoff[10],
|
||||||
top_standoff[11]];
|
top_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "right_rear" && top_rear_right_enable == true) {
|
if (pcbhole_pos == "right_rear" && top_rear_right_enable == true) {
|
||||||
normal_standoff = [top_standoff[0],
|
normal_standoff = [top_standoff[0],
|
||||||
@@ -404,7 +404,7 @@ module case_top(case_design) {
|
|||||||
top_standoff[9],
|
top_standoff[9],
|
||||||
top_standoff[10],
|
top_standoff[10],
|
||||||
top_standoff[11]];
|
top_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
if (pcbhole_pos == "right_front" && top_front_right_enable == true) {
|
if (pcbhole_pos == "right_front" && top_front_right_enable == true) {
|
||||||
normal_standoff = [top_standoff[0],
|
normal_standoff = [top_standoff[0],
|
||||||
@@ -419,7 +419,7 @@ module case_top(case_design) {
|
|||||||
top_standoff[9],
|
top_standoff[9],
|
||||||
top_standoff[10],
|
top_standoff[10],
|
||||||
top_standoff[11]];
|
top_standoff[11]];
|
||||||
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff);
|
translate([pcbhole_x,pcbhole_y,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -441,7 +441,7 @@ module case_top(case_design) {
|
|||||||
ext_top_standoff[10],
|
ext_top_standoff[10],
|
||||||
ext_top_standoff[11]];
|
ext_top_standoff[11]];
|
||||||
translate([width-ext_top_standoff_support_size/4-(2*(wallthick+gap))-(corner_fillet/2),
|
translate([width-ext_top_standoff_support_size/4-(2*(wallthick+gap))-(corner_fillet/2),
|
||||||
(corner_fillet/2)+ext_top_standoff_support_size/4,case_z]) standoff(normal_standoff);
|
(corner_fillet/2)+ext_top_standoff_support_size/4,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended right-front standoff
|
// extended right-front standoff
|
||||||
if(((width-pcb_loc_x-pcb_width-(gap+2*wallthick) >= 10 && depth-pcb_loc_y-pcb_depth >= 10) ||
|
if(((width-pcb_loc_x-pcb_width-(gap+2*wallthick) >= 10 && depth-pcb_loc_y-pcb_depth >= 10) ||
|
||||||
@@ -462,7 +462,7 @@ module case_top(case_design) {
|
|||||||
ext_top_standoff[11]];
|
ext_top_standoff[11]];
|
||||||
translate([width-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),
|
translate([width-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),
|
||||||
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),case_z])
|
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)),case_z])
|
||||||
standoff(normal_standoff);
|
standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended left-rear standoff
|
// extended left-rear standoff
|
||||||
if((pcb_loc_x >= 10 || pcb_loc_y >= 10) && ext_top_rear_left_enable == true) {
|
if((pcb_loc_x >= 10 || pcb_loc_y >= 10) && ext_top_rear_left_enable == true) {
|
||||||
@@ -479,7 +479,7 @@ module case_top(case_design) {
|
|||||||
ext_top_standoff[10],
|
ext_top_standoff[10],
|
||||||
ext_top_standoff[11]];
|
ext_top_standoff[11]];
|
||||||
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
||||||
(corner_fillet/2)+ext_top_standoff_support_size/4,case_z]) standoff(normal_standoff);
|
(corner_fillet/2)+ext_top_standoff_support_size/4,case_z]) standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
// extended left-front standoff
|
// extended left-front standoff
|
||||||
if(((pcb_loc_x >= 10 && (depth-(pcb_loc_y+pcb_depth)) >= 10) ||
|
if(((pcb_loc_x >= 10 && (depth-(pcb_loc_y+pcb_depth)) >= 10) ||
|
||||||
@@ -500,7 +500,7 @@ module case_top(case_design) {
|
|||||||
ext_top_standoff[11]];
|
ext_top_standoff[11]];
|
||||||
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
translate([(corner_fillet/2)+ext_top_standoff_support_size/4,
|
||||||
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)), case_z])
|
depth-ext_top_standoff_support_size/4-(corner_fillet/2)-(2*(wallthick+gap)), case_z])
|
||||||
standoff(normal_standoff);
|
standoff(normal_standoff,[false,10,2,"default"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
schema:
|
schema:
|
||||||
"accessory_name",
|
"accessory_name",
|
||||||
"class","type",loc_x,loc_y,loc_z,face,rotation[x,y,z],parametric[association,x,y,z],size_x,size_y,size_z,data_1,data_2,"data_3",data_4[]
|
"class","type",loc_x,loc_y,loc_z,face,rotation[x,y,z],parametric[association,x,y,z],[size_x,size_y,size_z],[data],mask[enablemask,mlength,msetback,mstyle]
|
||||||
|
|
||||||
|
|
||||||
classes: add1, sub, suball, add2, model, platter
|
classes: add1, sub, suball, add2, model, platter
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ include <./lib/art.scad>;
|
|||||||
include <./lib/batteries.scad>;
|
include <./lib/batteries.scad>;
|
||||||
include <./lib/buttons.scad>;
|
include <./lib/buttons.scad>;
|
||||||
include <./lib/cable_holder.scad>;
|
include <./lib/cable_holder.scad>;
|
||||||
|
include <./lib/component.scad>;
|
||||||
include <./lib/custom.scad>;
|
include <./lib/custom.scad>;
|
||||||
include <./lib/fastener.scad>;
|
include <./lib/fastener.scad>;
|
||||||
include <./lib/feet.scad>;
|
include <./lib/feet.scad>;
|
||||||
|
|||||||
Reference in New Issue
Block a user