Files
squeezelite-esp32/protobuf/proto/GPIO.proto
2025-03-18 17:38:34 -04:00

18 lines
427 B
Protocol Buffer

syntax = "proto3";
package sys.gpio;
import "nanopb.proto";
option (nanopb_fileopt).enum_to_string = true;
enum lvl {
LOW = 0;
HIGH = 1;
}
// GPIO to use for the specified function
message config {
option (nanopb_msgopt).packed_struct = true;
option (nanopb_msgopt).msgid = 10130;
int32 pin = 1 [(nanopb).int_size = IS_8]; // a valid esp32 gpio pin that supports the intended mode
lvl level = 2 ; // 0 or 1
}