Led.proto 502 B

12345678910111213141516171819
  1. syntax = "proto3";
  2. package sys.led;
  3. import "customoptions.proto";
  4. import "GPIO.proto";
  5. import "nanopb.proto";
  6. option (nanopb_fileopt).enum_to_string = true;
  7. enum types {
  8. UNKNOWN = 0;
  9. GPIO = 1;
  10. WS2812 = 2;
  11. }
  12. message config {
  13. option (nanopb_msgopt).packed_struct = true;
  14. option (nanopb_msgopt).msgid = 10029;
  15. gpio.config gpio = 1 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  16. int32 brightness = 2 [(nanopb).int_size = IS_8]; // 0 to 100%
  17. types led_type = 3;
  18. }