mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
play pause buttons for universal projector remote
This commit is contained in:
@@ -11,7 +11,7 @@ void infrared_scene_universal_projector_on_enter(void* context) {
|
|||||||
|
|
||||||
infrared_brute_force_set_db_filename(brute_force, EXT_PATH("infrared/assets/projectors.ir"));
|
infrared_brute_force_set_db_filename(brute_force, EXT_PATH("infrared/assets/projectors.ir"));
|
||||||
//TODO Improve Projectors universal remote
|
//TODO Improve Projectors universal remote
|
||||||
button_panel_reserve(button_panel, 2, 2);
|
button_panel_reserve(button_panel, 2, 3);
|
||||||
uint32_t i = 0;
|
uint32_t i = 0;
|
||||||
button_panel_add_item(
|
button_panel_add_item(
|
||||||
button_panel,
|
button_panel,
|
||||||
@@ -61,6 +61,30 @@ void infrared_scene_universal_projector_on_enter(void* context) {
|
|||||||
infrared_scene_universal_common_item_callback,
|
infrared_scene_universal_common_item_callback,
|
||||||
context);
|
context);
|
||||||
infrared_brute_force_add_record(brute_force, i++, "Vol_dn");
|
infrared_brute_force_add_record(brute_force, i++, "Vol_dn");
|
||||||
|
button_panel_add_item(
|
||||||
|
button_panel,
|
||||||
|
i,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
101,
|
||||||
|
&I_Play_25x27,
|
||||||
|
&I_Play_hvr_25x27,
|
||||||
|
infrared_scene_universal_common_item_callback,
|
||||||
|
context);
|
||||||
|
infrared_brute_force_add_record(brute_force, i++, "Play");
|
||||||
|
button_panel_add_item(
|
||||||
|
button_panel,
|
||||||
|
i,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
36,
|
||||||
|
101,
|
||||||
|
&I_Pause_25x27,
|
||||||
|
&I_Pause_hvr_25x27,
|
||||||
|
infrared_scene_universal_common_item_callback,
|
||||||
|
context);
|
||||||
|
infrared_brute_force_add_record(brute_force, i++, "Pause");
|
||||||
|
|
||||||
button_panel_add_label(button_panel, 10, 11, FontPrimary, "Projector");
|
button_panel_add_label(button_panel, 10, 11, FontPrimary, "Projector");
|
||||||
button_panel_add_label(button_panel, 17, 60, FontSecondary, "Volume");
|
button_panel_add_label(button_panel, 17, 60, FontSecondary, "Volume");
|
||||||
|
|||||||
@@ -994,3 +994,87 @@ type: parsed
|
|||||||
protocol: NECext
|
protocol: NECext
|
||||||
address: 87 4E 00 00
|
address: 87 4E 00 00
|
||||||
command: 51 AE 00 00
|
command: 51 AE 00 00
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: parsed
|
||||||
|
protocol: NECext
|
||||||
|
address: 00 30 00 00
|
||||||
|
command: A8 57 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NECext
|
||||||
|
address: 00 30 00 00
|
||||||
|
command: A9 56 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NECext
|
||||||
|
address: 83 55 00 00
|
||||||
|
command: 5E A1 00 00
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: parsed
|
||||||
|
protocol: NECext
|
||||||
|
address: 83 55 00 00
|
||||||
|
command: 5B A4 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 00 00 00 00
|
||||||
|
command: 93 00 00 00
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 00 00 00 00
|
||||||
|
command: 93 00 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 01 00 00 00
|
||||||
|
command: 15 00 00 00
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 01 00 00 00
|
||||||
|
command: 15 00 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NECext
|
||||||
|
address: B8 57 00 00
|
||||||
|
command: 18 E7 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: raw
|
||||||
|
frequency: 38000
|
||||||
|
duty_cycle: 0.33
|
||||||
|
data: 8981 4411 532 1616 557 1592 557 465 556 465 556 466 555 467 554 468 554 1595 554 467 554 468 554 1595 554 467 580 1569 581 1568 581 1568 581 1569 580 441 581 1569 580 442 580 1570 579 1594 555 467 555 443 579 442 580 1594 554 467 555 1594 555 467 555 468 554 1595 554 1595 528 1620 529 42169 9008 2106 531
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: raw
|
||||||
|
frequency: 38000
|
||||||
|
duty_cycle: 0.33
|
||||||
|
data: 8981 4411 532 1616 557 1592 557 465 556 465 556 466 555 467 554 468 554 1595 554 467 554 468 554 1595 554 467 580 1569 581 1568 581 1568 581 1569 580 441 581 1569 580 442 580 1570 579 1594 555 467 555 443 579 442 580 1594 554 467 555 1594 555 467 555 468 554 1595 554 1595 528 1620 529 42169 9008 2106 531
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 31 00 00 00
|
||||||
|
command: 41 00 00 00
|
||||||
|
#
|
||||||
|
name: Pause
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 31 00 00 00
|
||||||
|
command: 41 00 00 00
|
||||||
|
#
|
||||||
|
name: Play
|
||||||
|
type: parsed
|
||||||
|
protocol: NEC
|
||||||
|
address: 01 00 00 00
|
||||||
|
command: 03 00 00 00
|
||||||
|
|||||||
Reference in New Issue
Block a user