Initial commit

This commit is contained in:
cpu
2025-09-27 12:44:25 +02:00
commit 323fc68ac8
3665 changed files with 601898 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
# Mounting Holes
Various mounting holes.
Supported Sizes:
- M2
- M2_5
- M3
- M4
- M5
- M6
- M8
Supported Pad Types:
- NoPad
- Pad
- Pad_TopOnly
- Pad_Via
## Usage
```ato
#pragma experiment("MODULE_TEMPLATING")
from "atopile/mounting_holes/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
```
## Contributing
Contributions to this package are welcome via pull requests on the GitHub repository.
## License
This atopile package is provided under the [MIT License](https://opensource.org/license/mit/).