1234567891011121314151617 |
- 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
- }
|