/* * Copyright 2022 Thomas Buck - thomas@xythobuz.de * Philipp Schönberger - mail@phschoen.de * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * See . */ include <../config.scad> include <../constant.scad> module rp2040_pcb() { rotate([90,0,0]) import("../stl/pcb/rp2040.stl"); } rp2040_pcb(); module pico() { translate([-pico_w / 2, -pico_l / 2, 0]) difference() { union() { color("green") cube([pico_w, pico_l, pico_d]); translate([(pico_w - pico_usb_w) / 2, pico_l - pico_usb_d + pico_usb_off, pico_d]) cube([pico_usb_w, pico_usb_d, pico_usb_h]); } for (x = [0, pico_hole_d_x]) for (y = [0, pico_hole_d_y]) translate([pico_hole_x + x, pico_hole_y + y, -1]) cylinder(d = pico_hole_d, h = pico_d + 2); } }