Minor updates on the module name and header

This commit is contained in:
Marco Massarelli 2024-01-29 13:57:01 +00:00
parent 4ecf493756
commit 8f9bf5e66b
12 changed files with 26 additions and 27 deletions

View File

@ -40,7 +40,6 @@
// at least once in the development of a board to confirm sufficient clearance for the
// connector and wires.
module.exports = {
params: {
designator: 'JST',

View File

@ -12,11 +12,11 @@
// With the set defaults it will include support for choc v1 and v2 hotswap, single side
// (Back).
//
// Nets
// Nets:
// from: corresponds to pin 1
// to: corresponds to pin 2
//
// Params
// Params:
// side: default is B for Back
// the side on which to place the single-side footprint and designator, either F or B
// reversible: default is false
@ -59,20 +59,20 @@
// added above the hotswap holes.
//
// @infused-kim's improvements:
// - Added hotswap socket outlines
// - Moved switch corner marks from user layer to silk screen
// - Added option to adjust keycap size outlines (to show 1.5u outline)
// - Added option to add hotswap sockets and direct soldering holes at the
// - Add hotswap socket outlines
// - Move switch corner marks from user layer to silk screen
// - Add option to adjust keycap size outlines (to show 1.5u outline)
// - Add option to add hotswap sockets and direct soldering holes at the
// same time
// - Made hotswap pads not overlap holes to fix DRC errors
// - Make hotswap pads not overlap holes to fix DRC errors
// - Fixed DRC errors "Drilled holes co-located"
//
// @ceoloide's improvements:
// - Adjusted footprint to be Choc PG1353 (v2) compatible
// - Added option to hide corner marks, as they interfere with hotswap silkscreen
// - Added ability to specify board side
// - Added ability to include stabilizer pad
// - Added ability to use an oval stabilizer pad
// - Add option to hide corner marks, as they interfere with hotswap silkscreen
// - Add ability to specify board side
// - Add ability to include stabilizer pad
// - Add ability to use an oval stabilizer pad
module.exports = {
params: {
@ -96,7 +96,7 @@ module.exports = {
},
body: p => {
const common_top = `
(module "ceoloide/choc_v1_v2" (layer F.Cu) (tedit 5DD50112)
(module "ceoloide:choc_v1_v2" (layer F.Cu) (tedit 5DD50112)
${p.at /* parametric position */}
(attr virtual)

View File

@ -12,7 +12,7 @@
// Datasheet:
// https://cdn.shopify.com/s/files/1/0618/5674/3655/files/Semtech-1N4148W.pdf?v=1670451309
//
// Params
// Params:
// side: default is B for Back
// the side on which to place the single-side footprint and designator, either F or B
// reversible: default is false
@ -31,8 +31,8 @@
module.exports = {
params: {
designator: 'D',
reversible: false,
side: 'B',
reversible: false,
include_tht: false,
from: undefined,
to: undefined
@ -40,7 +40,7 @@ module.exports = {
body: p => {
const standard_opening = `
(module "ceoloide/combo_diode_sod123" (layer ${p.side}.Cu) (tedit 5B24D78E)
(module "ceoloide:combo_diode_sod123" (layer ${p.side}.Cu) (tedit 5B24D78E)
${p.at /* parametric position */}
(fp_text reference "${p.ref}" (at 0 0) (layer ${p.side}.SilkS) ${p.ref_hide} (effects (font (size 1.27 1.27) (thickness 0.15))))
`

View File

@ -111,7 +111,7 @@ module.exports = {
}
const standard_opening = `
(module "ceoloide/led_SK6812mini-e (${p.reverse_mount ? "per-key" : "underglow"}${p.reversible ? ", reversible" : "single-side"})"
(module "ceoloide:led_SK6812mini-e (${p.reverse_mount ? "per-key" : "underglow"}${p.reversible ? ", reversible" : "single-side"})"
(layer ${p.side}.Cu) (tedit 5F70BC98)
${p.at /* parametric position */}

View File

@ -27,7 +27,7 @@ module.exports = {
hole_drill: '2.2',
},
body: p => `
(module "ceoloide/mounting_hole_npth" (layer ${p.side}.Cu) (tedit 5F1B9159)
(module "ceoloide:mounting_hole_npth" (layer ${p.side}.Cu) (tedit 5F1B9159)
${p.at /* parametric position */}
(fp_text reference "${p.ref}" (at 0 2.55) (layer ${p.side}.SilkS) ${p.ref_hide} (effects (font (size 1 1) (thickness 0.15))))
(pad "" np_thru_hole circle (at 0 0) (size ${p.hole_size} ${p.hole_size}) (drill ${p.hole_drill}) (layers *.Cu *.Mask))

View File

@ -433,7 +433,7 @@ module.exports = {
}
const common_top = `
(module "ceoloide/nice_nano" (layer F.Cu) (tedit 6451A4F1)
(module "ceoloide:nice_nano" (layer F.Cu) (tedit 6451A4F1)
(attr virtual)
${p.at /* parametric position */}
(fp_text reference "${p.ref}" (at 0 -15) (layer F.SilkS) ${p.ref_hide}

View File

@ -142,7 +142,7 @@ module.exports = {
}
const top = `
(module "ceoloide/nice_view" (layer ${p.side}.Cu) (tedit 6448AF5B)
(module "ceoloide:nice_view" (layer ${p.side}.Cu) (tedit 6448AF5B)
${p.at /* parametric position */}
(attr virtual)
(fp_text reference "${p.ref}" (at 0 20 ${p.rot}) (layer ${p.side}.SilkS) ${p.ref_hide}

View File

@ -56,7 +56,7 @@ module.exports = {
},
body: p => {
const common_start = `
(module "ceoloide/power_switch_smd_side" (layer ${p.side}.Cu) (tedit 64473C6F)
(module "ceoloide:power_switch_smd_side" (layer ${p.side}.Cu) (tedit 64473C6F)
${p.at /* parametric position */}
(attr smd)
(fp_text value "reset_button" (at 0 2.5 ${p.rot}) (layer ${p.side}.Fab)

View File

@ -44,7 +44,7 @@ module.exports = {
},
body: p => {
const common_start = `
(module "ceoloide/reset_button_smd_side" (layer ${p.side}.Cu) (tedit 64473C6F)
(module "ceoloide:reset_button_smd_side" (layer ${p.side}.Cu) (tedit 64473C6F)
${p.at /* parametric position */}
(attr smd)
(fp_text value "reset_button_smd_side" (at 0 2.5 ${p.rot}) (layer ${p.side}.Fab)

View File

@ -34,7 +34,7 @@ module.exports = {
},
body: p => {
const common_start = `
(module "ceoloide/reset_switch_tht_top" (layer ${p.side}.Cu) (tedit 5B9559E6) (tstamp 61905781)
(module "ceoloide:reset_switch_tht_top" (layer ${p.side}.Cu) (tedit 5B9559E6) (tstamp 61905781)
${p.at /* parametric position */}
(fp_text value "reset_switch_tht_top" (at 0 -2.55 90) (layer ${p.side}.Fab) (effects (font (size 1 1) (thickness 0.15))))
(fp_text reference "${p.ref}" (at 0 2.55 90) (layer ${p.side}.SilkS) ${p.ref_hide} (effects (font (size 1 1) (thickness 0.15))))

View File

@ -10,7 +10,7 @@
// layer, and optionally make it reversible on the
// opposite side.
//
// Params
// Params:
// reversible: default is false
// Adds a mirrored text on the opposite side of the board
// thickness: default is 0.15

View File

@ -27,8 +27,8 @@
//
// Reversible & symmetrical
// _________________
// | ( A ) (C) (D)|
// | |
// | ( A ) (C) (D)|_
// | |_|
// |_( A )_(C)___(D)|
//
// Datasheet:
@ -77,7 +77,7 @@ module.exports = {
}
const standard_opening = `
(module "ceoloide/${footprint_name}" (layer ${p.side}.Cu) (tedit 5970F8E5)
(module "ceoloide:${footprint_name}" (layer ${p.side}.Cu) (tedit 5970F8E5)
${p.at /* parametric position */}