You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.1 KiB

/*
* 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 <http://www.gnu.org/licenses/>.
*/
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);
}
}