From 3e29a3ed69fb31bc5056b46e7ffb8fcad1c784d7 Mon Sep 17 00:00:00 2001 From: Brayan Felipe Zapata Martinez <72805940+brayanfz013@users.noreply.github.com> Date: Fri, 2 Jun 2023 23:07:45 -0500 Subject: [PATCH 1/3] To UP and Down volumn use keyboard.tap_key insted of hid_report --- user_keymaps/ZFR_KBD/RP2.65-F.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/user_keymaps/ZFR_KBD/RP2.65-F.py b/user_keymaps/ZFR_KBD/RP2.65-F.py index bf22fe85a..db7ed8752 100644 --- a/user_keymaps/ZFR_KBD/RP2.65-F.py +++ b/user_keymaps/ZFR_KBD/RP2.65-F.py @@ -90,13 +90,14 @@ def set_sys_vol(state): else: # vol_direction = "down" cmd = KC.VOLD - + #Send command cmd to OS to up and down volume + keyboard.tap_key(cmd) # print(f"Setting system volume {vol_direction} by {level_diff} to reach {level}") - for i in range(int(level_diff / level_inc_step)): - hid_report = keyboard._hid_helper.create_report([cmd]) - hid_report.send() - hid_report.clear_all() - hid_report.send() +# for i in range(int(level_diff / level_inc_step)): +# hid_report = keyboard._hid_helper.create_report([cmd]) +# hid_report.send() +# hid_report.clear_all() +# hid_report.send() keyboard.last_level = level return From 97c8993ae2fce8d092eefc199b62551ba36ad192 Mon Sep 17 00:00:00 2001 From: Brayan Felipe Zapata Martinez <72805940+brayanfz013@users.noreply.github.com> Date: Thu, 31 Aug 2023 13:29:03 -0500 Subject: [PATCH 2/3] Delete comments --- user_keymaps/ZFR_KBD/RP2.65-F.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/user_keymaps/ZFR_KBD/RP2.65-F.py b/user_keymaps/ZFR_KBD/RP2.65-F.py index db7ed8752..6f091266b 100644 --- a/user_keymaps/ZFR_KBD/RP2.65-F.py +++ b/user_keymaps/ZFR_KBD/RP2.65-F.py @@ -93,11 +93,6 @@ def set_sys_vol(state): #Send command cmd to OS to up and down volume keyboard.tap_key(cmd) # print(f"Setting system volume {vol_direction} by {level_diff} to reach {level}") -# for i in range(int(level_diff / level_inc_step)): -# hid_report = keyboard._hid_helper.create_report([cmd]) -# hid_report.send() -# hid_report.clear_all() -# hid_report.send() keyboard.last_level = level return From 05617a83b3e5eef3539f4fe54ad747eef1d38853 Mon Sep 17 00:00:00 2001 From: xs5871 <60395129+xs5871@users.noreply.github.com> Date: Fri, 15 Sep 2023 08:08:50 +0000 Subject: [PATCH 3/3] Update RP2.65-F.py --- user_keymaps/ZFR_KBD/RP2.65-F.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_keymaps/ZFR_KBD/RP2.65-F.py b/user_keymaps/ZFR_KBD/RP2.65-F.py index 6f091266b..efc5e9942 100644 --- a/user_keymaps/ZFR_KBD/RP2.65-F.py +++ b/user_keymaps/ZFR_KBD/RP2.65-F.py @@ -90,7 +90,7 @@ def set_sys_vol(state): else: # vol_direction = "down" cmd = KC.VOLD - #Send command cmd to OS to up and down volume + # Send command cmd to OS to up and down volume keyboard.tap_key(cmd) # print(f"Setting system volume {vol_direction} by {level_diff} to reach {level}")