A Circuits.UART.Framing module for communicating with the PMS7003 particle concentration sensor.
Add circuits_uart_framing_pms7003
to your mix.exs
file:
def deps do
[
{:circuits_uart_framing_pms7003, "~> 0.1.0"}
]
end
Use the framer in Circuits.UART.open/3
or Circuits.UART.configure/2
.
Circuits.UART.open(pid, "COM1", framing: CircuitsUARTFramingPMS7003)
# or
Circuits.UART.configure(pid, framing: CircuitsUARTFramingPMS7003)