mirror of
https://github.com/Ikatono/stream_pad.git
synced 2025-10-29 04:56:01 -05:00
moved proto and yaml files
This commit is contained in:
42
src/RP2040_Deck_Demo.proto
Normal file
42
src/RP2040_Deck_Demo.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
enum WheelAction {
|
||||
None = 0;
|
||||
Volume = 1;
|
||||
MicVolume = 2;
|
||||
}
|
||||
|
||||
message Pixel {
|
||||
uint32 red = 1;
|
||||
uint32 green = 2;
|
||||
uint32 blue = 3;
|
||||
}
|
||||
|
||||
message Config {
|
||||
message Page {
|
||||
message Button
|
||||
{
|
||||
string button_text = 1;
|
||||
bytes keys = 2;
|
||||
Pixel led = 3;
|
||||
optional uint32 goto_page = 4;
|
||||
optional uint32 action_id = 5;
|
||||
}
|
||||
string page_text = 1;
|
||||
Button button1 = 2;
|
||||
Button button2 = 3;
|
||||
Button button3 = 4;
|
||||
Button button4 = 5;
|
||||
Button button5 = 6;
|
||||
Button button6 = 7;
|
||||
Button button7 = 8;
|
||||
Button button8 = 9;
|
||||
Button button9 = 10;
|
||||
Button button10 = 11;
|
||||
Button button11 = 12;
|
||||
Button button12 = 13;
|
||||
WheelAction wheel_action = 14;
|
||||
}
|
||||
repeated Page pages = 1;
|
||||
optional WheelAction = 2;
|
||||
}
|
||||
49
src/RP2040_Deck_Demo.yaml
Normal file
49
src/RP2040_Deck_Demo.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
#important reference: https://www.usb.org/sites/default/files/hut1_4.pdf
|
||||
|
||||
config:
|
||||
#the
|
||||
pages:
|
||||
#main purpose of the name is for internal reference
|
||||
- name: first_page
|
||||
#action of rotary encoder
|
||||
wheel: volume
|
||||
#text when no key is held
|
||||
text: FIRST PAGE
|
||||
keys:
|
||||
0:
|
||||
#mutes the system speaker
|
||||
#see "System Speaker Mute" under Generic(0x01)
|
||||
action: Mute
|
||||
#text that displays while this key is held
|
||||
#if the key is held, it won't do
|
||||
text: MUTE
|
||||
#color of the LED for this key
|
||||
color: blue
|
||||
#use a number or string for the key, doesn't matter
|
||||
"1":
|
||||
action:
|
||||
#presses each of these keys in sequence, then releases them all
|
||||
- ctrl
|
||||
- alt
|
||||
- del
|
||||
text: TASK MANAGER
|
||||
#specify color in hex
|
||||
color: '0x01ab45'
|
||||
#after performing action (or instead if there is no action), change the page
|
||||
goto: second_page
|
||||
#presumably most pages define all 12 keys
|
||||
- name: second_page
|
||||
wheel: mic_volume
|
||||
text:
|
||||
#use an array of strings to separate lines
|
||||
- SECOND
|
||||
- PAGE
|
||||
keys:
|
||||
0:
|
||||
action:
|
||||
#start a process
|
||||
exec: ./scripts/do_cool_think.sh
|
||||
#optional, used to kill (interact?) with process later
|
||||
name: cool_thing_doer
|
||||
#possible format for decimal RGB
|
||||
color: "12,13,14"
|
||||
Reference in New Issue
Block a user