Initial commit
This commit is contained in:
16
.ato/modules/atopile/mounting-holes/usage.ato
Normal file
16
.ato/modules/atopile/mounting-holes/usage.ato
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma experiment("MODULE_TEMPLATING")
|
||||
from "MountingHole.py" import MountingHole
|
||||
|
||||
module Usage:
|
||||
"""
|
||||
Example of using mounting holes
|
||||
"""
|
||||
|
||||
m2_with_pad = new MountingHole<metric_screw_size="M3", pad_type="Pad">
|
||||
m6_no_pad = new MountingHole<metric_screw_size="M6", pad_type="NoPad">
|
||||
m3_top_pad = new MountingHole<metric_screw_size="M3", pad_type="Pad_TopOnly">
|
||||
m4_pad_with_vias = new MountingHole<metric_screw_size="M4", pad_type="Pad_Via">
|
||||
|
||||
m2_with_pad.contact ~ m3_top_pad.contact
|
||||
m3_top_pad.contact ~ m4_pad_with_vias.contact
|
||||
# m6_no_pad has no contact
|
||||
Reference in New Issue
Block a user