@@ -498,6 +498,7 @@ api:
|
||||
bg: int[]
|
||||
icon: string
|
||||
icon_color: int[]
|
||||
icon_font: int
|
||||
bri: string
|
||||
bri_color: int[]
|
||||
label: string
|
||||
@@ -510,6 +511,7 @@ api:
|
||||
std::string btntext = id.c_str() + std::string("text");
|
||||
std::string btnbri = id.c_str() + std::string("bri");
|
||||
disp1->send_command_printf("%spic.pic=%" PRIu32, id.c_str(), pic);
|
||||
disp1->send_command_printf("%sicon.font=%" PRIu32, id.c_str(), icon_font);
|
||||
set_component_color->execute(btnicon.c_str(), icon_color, bg);
|
||||
set_component_color->execute(btntext.c_str(), label_color, bg);
|
||||
set_component_color->execute(btnbri.c_str(), bri_color, bg);
|
||||
|
||||
Reference in New Issue
Block a user