mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 04:57:06 +03:00
18 lines
427 B
Protocol Buffer
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
|
|
}
|