From 3970d1c54333bd1b83cc8f6ac44340c767a72198 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Mon, 15 May 2023 13:27:29 -0500 Subject: [PATCH] Move to module_config --- meshtastic/mesh.proto | 38 ---------------------------------- meshtastic/module_config.proto | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index fa9dbd5..eadc0a6 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1469,41 +1469,3 @@ message Neighbor { */ HardwareModel hw_model = 9; } - -/* - * A GPIO pin definition for remote hardware module - */ -message RemoteHardwarePin { - /* - * GPIO Pin number (must match Arduino) - */ - uint32 gpio_pin = 1; - - /* - * Name for the GPIO pin (i.e. Front gate, mailbox, etc) - */ - string name = 2; - - /* - * Type of GPIO access available to consumers on the mesh - */ - RemoteHardwarePinType type = 3; -} - -enum RemoteHardwarePinType { - - /* - * Unset/unused (should never occur) - */ - UNSET = 0; - - /* - * GPIO pin can be read (if it is high / low) - */ - DIGITAL_READ = 1; - - /* - * GPIO pin can be written to (high / low) - */ - DIGITAL_WRITE = 2; -} diff --git a/meshtastic/module_config.proto b/meshtastic/module_config.proto index 1a83da1..a15b92a 100644 --- a/meshtastic/module_config.proto +++ b/meshtastic/module_config.proto @@ -568,3 +568,41 @@ message ModuleConfig { } } + +/* + * A GPIO pin definition for remote hardware module + */ + message RemoteHardwarePin { + /* + * GPIO Pin number (must match Arduino) + */ + uint32 gpio_pin = 1; + + /* + * Name for the GPIO pin (i.e. Front gate, mailbox, etc) + */ + string name = 2; + + /* + * Type of GPIO access available to consumers on the mesh + */ + RemoteHardwarePinType type = 3; +} + +enum RemoteHardwarePinType { + + /* + * Unset/unused (should never occur) + */ + UNSET = 0; + + /* + * GPIO pin can be read (if it is high / low) + */ + DIGITAL_READ = 1; + + /* + * GPIO pin can be written to (high / low) + */ + DIGITAL_WRITE = 2; +}