https://github.com/pedrolamas/klipper-virtual-pins
:nut_and_bolt: Klipper virtual_pins module
https://github.com/pedrolamas/klipper-virtual-pins
klipper
Last synced: 29 days ago
JSON representation
:nut_and_bolt: Klipper virtual_pins module
- Host: GitHub
- URL: https://github.com/pedrolamas/klipper-virtual-pins
- Owner: pedrolamas
- License: mit
- Created: 2023-03-21T08:59:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T08:32:28.000Z (7 months ago)
- Last Synced: 2025-04-16T09:22:45.842Z (about 1 month ago)
- Topics: klipper
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 33
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Klipper virtual_pins module
[](https://github.com/pedrolamas/klipper-virtual-pins 'GitHub Repository')
[](https://github.com/pedrolamas/klipper-virtual-pins/blob/master/LICENSE 'License')[](https://twitter.com/pedrolamas)
[](https://hachyderm.io/@pedrolamas)`Klipper Virtual Pins` is a [Klipper](https://github.com/Klipper3d/klipper) helper module that allows usage of virtual (simulated) pins.
This module allows configurable pins to be set to `virtual_pin:` as a way to mitigate the limited number of available pins provided by the MCUs.
**Note:** `virtual_pins` will be able to simulate most pins, with the major exception of steppers `step_pin` and `dir_pin` (please use MCU pins for these).
## Install
Clone this repository from git and run the install script:
```sh
cd ~
git clone https://github.com/pedrolamas/klipper-virtual-pins.git
./klipper-virtual-pins/install.sh
```## Usage
First, add an empty `[virtual_pins]` section to your `printer.cfg` to enable the `virtual_pins`:
```ini
[virtual_pins]
```After that, use `virtual_pin:` prefix followed by a random identifier (example `virtual_pin:test`)
Here's a fully working `printer.cfg` snippet:
```ini
[virtual_pins][output_pin test]
pin: virtual_pin:test_pin
pwm: True
cycle_time: 0.1
```## Credits and Acknowledgements
- [Klipper](https://github.com/Klipper3d/klipper) by [Kevin O'Connor](https://github.com/KevinOConnor)
## License
MIT