farmbot v6.0.1-alpha Farmbot.Firmware.Gcode.Param View Source

Firmware paramaters.

Link to this section Summary

Types

t()

Human readable name of a paramater

Functions

Parses farmbot_arduino_firmware params. If we want the name of param “0”\n Example:

iex> Gcode.parse_param("0")
:param_version

Link to this section Types

Human readable name of a paramater.

Link to this section Functions

Link to this function parse_param(param) View Source
parse_param(binary | integer) :: t | nil
parse_param(t) :: integer | nil

Parses farmbot_arduino_firmware params. If we want the name of param “0”\n Example:

iex> Gcode.parse_param("0")
:param_version

Example:

iex> Gcode.parse_param(0)
:param_version

If we want the integer of param :param_version\n Example:

iex> Gcode.parse_param(:param_version)
0

Example:

iex> Gcode.parse_param("param_version")
0