prn_pins.cfg 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #[output_pin my_pin]
  2. #pin: PB4
  3. # The pin to configure as an output. This parameter must be
  4. # provided.
  5. #pwm: False
  6. # Set if the output pin should be capable of pulse-width-modulation.
  7. # If this is true, the value fields should be between 0 and 1; if it
  8. # is false the value fields should be either 0 or 1. The default is
  9. # False.
  10. #value: 0
  11. # The value to initially set the pin to during MCU configuration.
  12. # The default is 0 (for low voltage).
  13. #shutdown_value: 0
  14. # The value to set the pin to on an MCU shutdown event. The default
  15. # is 0 (for low voltage).
  16. #cycle_time: 0.100
  17. # The amount of time (in seconds) per PWM cycle. It is recommended
  18. # this be 10 milliseconds or greater when using software based PWM.
  19. # The default is 0.100 seconds for pwm pins.
  20. #hardware_pwm: False
  21. # Enable this to use hardware PWM instead of software PWM. When
  22. # using hardware PWM the actual cycle time is constrained by the
  23. # implementation and may be significantly different than the
  24. # requested cycle_time. The default is False.
  25. #scale:
  26. # This parameter can be used to alter how the 'value' and
  27. # 'shutdown_value' parameters are interpreted for pwm pins. If
  28. # provided, then the 'value' parameter should be between 0.0 and
  29. # 'scale'. This may be useful when configuring a PWM pin that
  30. # controls a stepper voltage reference. The 'scale' can be set to
  31. # the equivalent stepper amperage if the PWM were fully enabled, and
  32. # then the 'value' parameter can be specified using the desired
  33. # amperage for the stepper. The default is to not scale the 'value'
  34. # parameter.