Packages

Simulates (NOT EMULATES) Farmbot's arduino firmware and hardware. The firmware is pretty stable and used in FarmbotOS's testing environment. The visual hardware simulator is very much a WIP.

Current section

Files

Jump to
farmbot_simulator lib firmware code_handler f41.ex
Raw

lib/firmware/code_handler/f41.ex

defmodule Firmware.CodeHandler.F41 do
@moduledoc false
@behaviour Firmware.CodeHandler
def run(["P" <> pin, "V" <> value, "M" <> _mode, _qcode]) do
Firmware.PinHandler.set_pin_value(pin, value)
:noreply
end
end