# Ooza gcode controls

## Solenoid

This is something that pinches the air supply completely, like 'pen down' and 'pen up'  
  
Configured with <span style="color: rgb(86, 156, 214);">M950</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">P</span><span style="color: rgb(181, 206, 168);">2</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">C</span><span style="color: rgb(206, 145, 120);">"out7"</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">Q</span><span style="color: rgb(181, 206, 168);">65535</span>  
Open regulator? with <span style="color: rgb(86, 156, 214);">M42</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">P</span><span style="color: rgb(181, 206, 168);">2</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">S</span><span style="color: rgb(181, 206, 168);">1</span> turns the green light on  
Close regulator? with <span style="color: rgb(86, 156, 214);">M42</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">P</span><span style="color: rgb(181, 206, 168);">2</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">S</span><span style="color: rgb(181, 206, 168);">0 </span>turns the green light off

## Pressure Regulator

This is what controls the output of the compressor

Configured with <span style="color: rgb(86, 156, 214);">M950</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">F</span><span style="color: rgb(181, 206, 168);">0</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">C</span><span style="color: rgb(206, 145, 120);">"out9"</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">Q</span><span style="color: rgb(181, 206, 168);">500</span>;<span style="color: rgb(86, 156, 214);"> M106</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">P</span><span style="color: rgb(181, 206, 168);">0</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">C</span><span style="color: rgb(206, 145, 120);">"regulator"</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">H</span><span style="color: rgb(212, 212, 212);">-</span><span style="color: rgb(181, 206, 168);">1</span>  
No pressure with <span style="color: rgb(86, 156, 214);">M106</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">S</span><span style="color: rgb(181, 206, 168);">0</span>  
Half pressure with <span style="color: rgb(86, 156, 214);">M106</span><span style="color: rgb(212, 212, 212);"> </span><span style="color: rgb(86, 156, 214);">S</span><span style="color: rgb(181, 206, 168);">0.5</span>