Minor updates on the module name and header
This commit is contained in:
parent
4ecf493756
commit
8f9bf5e66b
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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))))
|
||||
`
|
||||
|
|
|
|||
|
|
@ -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 */}
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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))))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue