User outputs allow you to output digital (on/off) and analog (PWM) signals via gcode. The code is sychronized. This means the change on the output pin occurs after all prvious gcode in the buffer has completed.
The analog signal can be used to control RC Servos. Consider a 50Hz (typical) servo with pulse range of 1ms to 2ms. 50Hz has a period of 20ms, so 5% is 1ms and 10% is 2ms.
:high
or :low
attribute.Config Examples:
user_outputs:
analog0_pin: gpio.13
analog1_pin: gpio.14:low
analog2_pin: NO_PIN
analog3_pin: NO_PIN
analog0_hz: 5000
analog1_hz: 5000
analog2_hz: 5000
analog3_hz: 5000
digital0_pin: gpio.26
digital1_pin: gpio.4
digital2_pin: i2so.5
digital3_pin: i2so.6:low
digital4_pin: NO_PIN
digital5_pin: NO_PIN
digital6_pin: NO_PIN
digital7_pin: NO_PIN