From eda88cc8d75eb4c0cb59b368b4e2ad3db2115834 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Tue, 14 Jun 2022 15:10:59 +0100 Subject: [PATCH] Fixed vero() constructor documentation. Fixed missing space in veroboard vitamin decription. --- readme.md | 4 ++-- vitamins/veroboard.scad | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 94aa884..52fafd5 100644 --- a/readme.md +++ b/readme.md @@ -4246,7 +4246,7 @@ Veroboard with mounting holes, track breaks, removed tracks, solder points and c ### Functions | Function | Description | |:--- |:--- | -| `vero(name, assembly, holes, strips, pitch = inch(0.1)` | Constructor | +| `vero(name, assembly, holes, strips, pitch = 2.54, fr4 = false, screw = M3_cap_screw, mounting_holes = [], breaks = [], no_tracks = [], components = [], joints = [])` | Constructor | | `vero_length(type)` | Length of the board | | `vero_size(type)` | Board size | | `vero_thickness(type)` | Thickness of the substrate | @@ -4274,7 +4274,7 @@ Veroboard with mounting holes, track breaks, removed tracks, solder points and c | 4 | `nut(M3_nut, nyloc = true)` | Nut M3 x 2.4mm nyloc | | 4 | `screw(M3_dome_screw, 25)` | Screw M3 dome x 25mm | | 2 | `green_terminal(gt_2p54, 10)` | Terminal block 10 way 0.1" | -| 2 | `veroboard(z_vb)` | Veroboard 5 holes x 22strips | +| 2 | `veroboard(z_vb)` | Veroboard 5 holes x 22 strips | | 8 | `washer(M3_washer)` | Washer M3 x 7mm x 0.5mm | ### Printed diff --git a/vitamins/veroboard.scad b/vitamins/veroboard.scad index 75c8f3f..3babd73 100644 --- a/vitamins/veroboard.scad +++ b/vitamins/veroboard.scad @@ -41,7 +41,7 @@ function vero_track_width(type) = vero_pitch(type) * 0.8; //! The width of th function vero_length(type) = vero_holes(type) * vero_pitch(type); //! Length of the board function vero_width(type) = vero_strips(type) * vero_pitch(type); //! Width of the board -function vero(name, assembly, holes, strips, pitch = inch(0.1), fr4 = false, screw = M3_cap_screw, mounting_holes = [], breaks = [], no_tracks = [], components = [], joints = []) = //! Constructor +function vero(name, assembly, holes, strips, pitch = 2.54, fr4 = false, screw = M3_cap_screw, mounting_holes = [], breaks = [], no_tracks = [], components = [], joints = []) = //! Constructor [ name, assembly, holes, strips, pitch, fr4, screw, mounting_holes, breaks, no_tracks, components, joints ]; function vero_size(type) = [vero_length(type), vero_width(type), vero_thickness(type)]; //! Board size @@ -89,7 +89,7 @@ module veroboard(type) { //! Draw specified veroboard with missing tracks and tr tc = vero_fr4(type) ? "silver" : copper; no_track = vero_no_track(type); - vitamin(str("veroboard(", type[0], "): Veroboard ", holes, " holes x ", strips, "strips")); + vitamin(str("veroboard(", type[0], "): Veroboard ", holes, " holes x ", strips, " strips")); color(colour) linear_extrude(vero_thickness(type)) difference() {