Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K-Type: static LED visualisation flashes on, then off (and stays off) #221

Open
bennettp123 opened this issue Jan 17, 2023 · 0 comments
Open

Comments

@bennettp123
Copy link

bennettp123 commented Jan 17, 2023

Steps to reproduce

  1. Import macOS.json
  2. Flash the keyboard

Expected result

  • After flash, the "blue_glow" animation starts, and stays on until stopped

Actual result

  • After flash, the "blue_glow" animation starts, and immediately stops (maybe after 1 frame?)

Notes

  • The "blue_glow" animation was created in Kiibohd Configurator Version 1.1.0 (1.1.0), using "Static LED Visualization".
  • The macOS.json was created in Kiibohd Configurator Version 1.1.0 (1.1.0) by Kiibohd Configurator Version 1.1.0 (1.1.0), using "Show Raw JSON"→copy
  • Importing and re-exporting macOS.json causes a different output—the two strings are concatenated:
From cd59a39ee6081081fec3dc62ba7dbd375c62d39e Mon Sep 17 00:00:00 2001
From: Bennett Perkins <[email protected]>
Date: Tue, 17 Jan 2023 17:47:46 +0800
Subject: [PATCH] broken

---
 macOS.json | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/macOS.json b/macOS.json
index f49a377..c17b149 100644
--- a/macOS.json
+++ b/macOS.json
@@ -1963,8 +1963,7 @@
       "type": "static",
       "settings": "loop, replace:clear, framedelay:255, start",
       "frames": [
-        "### AUTO GENERATED - DO NOT EDIT - STATIC COLOR MAP ###",
-        "P[1](10,8,117),\nP[2](10,8,117),\nP[3](10,8,117),\nP[4](10,8,117),\nP[5](10,8,117),\nP[6](10,8,117),\nP[7](10,8,117),\nP[8](10,8,117),\nP[9](10,8,117),\nP[10](10,8,117),\nP[11](10,8,117),\nP[12](10,8,117),\nP[13](10,8,117),\nP[14](10,8,117),\nP[15](10,8,117),\nP[16](10,8,117),\nP[17](10,8,117),\nP[18](10,8,117),\nP[19](10,8,117),\nP[20](10,8,117),\nP[21](10,8,117),\nP[22](10,8,117),\nP[23](10,8,117),\nP[24](10,8,117),\nP[25](10,8,117),\nP[26](10,8,117),\nP[27](10,8,117),\nP[28](10,8,117),\nP[29](10,8,117),\nP[30](10,8,117),\nP[31](10,8,117),\nP[32](10,8,117),\nP[33](10,8,117),\nP[34](10,8,117),\nP[35](10,8,117),\nP[36](10,8,117),\nP[37](10,8,117),\nP[38](10,8,117),\nP[39](10,8,117),\nP[40](10,8,117),\nP[41](10,8,117),\nP[42](10,8,117),\nP[43](10,8,117),\nP[44](10,8,117),\nP[45](10,8,117),\nP[46](10,8,117),\nP[47](10,8,117),\nP[48](10,8,117),\nP[49](10,8,117),\nP[50](10,8,117),\nP[51](10,8,117),\nP[52](10,8,117),\nP[53](10,8,117),\nP[54](10,8,117),\nP[55](10,8,117),\nP[56](10,8,117),\nP[57](10,8,117),\nP[58](10,8,117),\nP[59](10,8,117),\nP[60](10,8,117),\nP[61](10,8,117),\nP[62](10,8,117),\nP[63](10,8,117),\nP[64](10,8,117),\nP[65](10,8,117),\nP[66](10,8,117),\nP[67](10,8,117),\nP[68](10,8,117),\nP[69](10,8,117),\nP[70](10,8,117),\nP[71](10,8,117),\nP[72](10,8,117),\nP[73](10,8,117),\nP[74](10,8,117),\nP[75](10,8,117),\nP[76](10,8,117),\nP[77](10,8,117),\nP[78](10,8,117),\nP[79](10,8,117),\nP[80](10,8,117),\nP[81](10,8,117),\nP[82](10,8,117),\nP[83](10,8,117),\nP[84](10,8,117),\nP[85](10,8,117),\nP[86](10,8,117),\nP[87](10,8,117),\nP[88](102,102,102),\nP[89](102,102,102),\nP[90](102,102,102),\nP[91](102,102,102),\nP[92](102,102,102),\nP[93](102,102,102),\nP[94](102,102,102),\nP[95](102,102,102),\nP[96](102,102,102),\nP[97](102,102,102),\nP[98](102,102,102),\nP[99](102,102,102),\nP[100](102,102,102),\nP[101](102,102,102),\nP[102](102,102,102),\nP[103](102,102,102),\nP[104](102,102,102),\nP[105](102,102,102),\nP[106](102,102,102),\nP[107](102,102,102),\nP[108](102,102,102),\nP[109](102,102,102),\nP[110](102,102,102),\nP[111](102,102,102),\nP[112](102,102,102),\nP[113](102,102,102),\nP[114](102,102,102),\nP[115](102,102,102),\nP[116](102,102,102),\nP[117](102,102,102),\nP[118](102,102,102),\nP[119](102,102,102)"
+        "### AUTO GENERATED - DO NOT EDIT - STATIC COLOR MAP ###\nP[1](10,8,117),\nP[2](10,8,117),\nP[3](10,8,117),\nP[4](10,8,117),\nP[5](10,8,117),\nP[6](10,8,117),\nP[7](10,8,117),\nP[8](10,8,117),\nP[9](10,8,117),\nP[10](10,8,117),\nP[11](10,8,117),\nP[12](10,8,117),\nP[13](10,8,117),\nP[14](10,8,117),\nP[15](10,8,117),\nP[16](10,8,117),\nP[17](10,8,117),\nP[18](10,8,117),\nP[19](10,8,117),\nP[20](10,8,117),\nP[21](10,8,117),\nP[22](10,8,117),\nP[23](10,8,117),\nP[24](10,8,117),\nP[25](10,8,117),\nP[26](10,8,117),\nP[27](10,8,117),\nP[28](10,8,117),\nP[29](10,8,117),\nP[30](10,8,117),\nP[31](10,8,117),\nP[32](10,8,117),\nP[33](10,8,117),\nP[34](10,8,117),\nP[35](10,8,117),\nP[36](10,8,117),\nP[37](10,8,117),\nP[38](10,8,117),\nP[39](10,8,117),\nP[40](10,8,117),\nP[41](10,8,117),\nP[42](10,8,117),\nP[43](10,8,117),\nP[44](10,8,117),\nP[45](10,8,117),\nP[46](10,8,117),\nP[47](10,8,117),\nP[48](10,8,117),\nP[49](10,8,117),\nP[50](10,8,117),\nP[51](10,8,117),\nP[52](10,8,117),\nP[53](10,8,117),\nP[54](10,8,117),\nP[55](10,8,117),\nP[56](10,8,117),\nP[57](10,8,117),\nP[58](10,8,117),\nP[59](10,8,117),\nP[60](10,8,117),\nP[61](10,8,117),\nP[62](10,8,117),\nP[63](10,8,117),\nP[64](10,8,117),\nP[65](10,8,117),\nP[66](10,8,117),\nP[67](10,8,117),\nP[68](10,8,117),\nP[69](10,8,117),\nP[70](10,8,117),\nP[71](10,8,117),\nP[72](10,8,117),\nP[73](10,8,117),\nP[74](10,8,117),\nP[75](10,8,117),\nP[76](10,8,117),\nP[77](10,8,117),\nP[78](10,8,117),\nP[79](10,8,117),\nP[80](10,8,117),\nP[81](10,8,117),\nP[82](10,8,117),\nP[83](10,8,117),\nP[84](10,8,117),\nP[85](10,8,117),\nP[86](10,8,117),\nP[87](10,8,117),\nP[88](102,102,102),\nP[89](102,102,102),\nP[90](102,102,102),\nP[91](102,102,102),\nP[92](102,102,102),\nP[93](102,102,102),\nP[94](102,102,102),\nP[95](102,102,102),\nP[96](102,102,102),\nP[97](102,102,102),\nP[98](102,102,102),\nP[99](102,102,102),\nP[100](102,102,102),\nP[101](102,102,102),\nP[102](102,102,102),\nP[103](102,102,102),\nP[104](102,102,102),\nP[105](102,102,102),\nP[106](102,102,102),\nP[107](102,102,102),\nP[108](102,102,102),\nP[109](102,102,102),\nP[110](102,102,102),\nP[111](102,102,102),\nP[112](102,102,102),\nP[113](102,102,102),\nP[114](102,102,102),\nP[115](102,102,102),\nP[116](102,102,102),\nP[117](102,102,102),\nP[118](102,102,102),\nP[119](102,102,102)"
       ]
     }
   },
-- 
2.37.1 (Apple Git-137.1)

Workaround

I can get the animation to work by removing the comment from the exported JSON:

  1. remove the string ### AUTO GENERATED - DO NOT EDIT - STATIC COLOR MAP ### (like this)
  2. import the new json
  3. flash the keyboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant