All Projects → intafon → kiibohd-animation-generator

intafon / kiibohd-animation-generator

Licence: GPL-3.0 license
Node.js script for generating animations for kiibohd configurator import

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to kiibohd-animation-generator

xcloud-keyboard-mouse
Chrome extension for controlling Xbox Cloud Gaming (Project xCloud) using a keyboard and mouse
Stars: ✭ 78 (+500%)
Mutual labels:  keyboard
buildlogs
Repository to document my builds and projects.
Stars: ✭ 84 (+546.15%)
Mutual labels:  keyboard
kalamine
Keyboard Layout Maker
Stars: ✭ 47 (+261.54%)
Mutual labels:  keyboard
L5P-Keyboard-RGB
Cross platform software to control the lighting of the 4 zone keyboard included in the 2020 and 2021 lineup of the Lenovo Legion laptops. Works on Windows and Linux.
Stars: ✭ 79 (+507.69%)
Mutual labels:  keyboard
vue-keyboard
🎹A real hand tapping keyboard
Stars: ✭ 51 (+292.31%)
Mutual labels:  keyboard
gotomation
No description or website provided.
Stars: ✭ 18 (+38.46%)
Mutual labels:  keyboard
ackermann-drive-teleop
ROS keyboard and joystick teleoperation scripts for robots with ackermann steering
Stars: ✭ 33 (+153.85%)
Mutual labels:  keyboard
g910-gkey-macro-support
GKey support for Logitech G910 Keyboard on Linux
Stars: ✭ 85 (+553.85%)
Mutual labels:  keyboard
Lotus58
A 58 key split ergo linear keyboard derived from the Lily58 family
Stars: ✭ 142 (+992.31%)
Mutual labels:  keyboard
iterm2-macos-dynamic-profile
🍎Fix iterm2 macos keys
Stars: ✭ 69 (+430.77%)
Mutual labels:  keyboard
Juni
12 Keys Chorded keyboard layout
Stars: ✭ 51 (+292.31%)
Mutual labels:  keyboard
mechanical-keyboard
⌨️ Resources related to my mechanical keyboard build.
Stars: ✭ 14 (+7.69%)
Mutual labels:  keyboard
python-keylogger
Advanced Pure-Python Keylogger
Stars: ✭ 64 (+392.31%)
Mutual labels:  keyboard
kindaVim.theapp
Ultimate Vim Mode for macOS
Stars: ✭ 372 (+2761.54%)
Mutual labels:  keyboard
Arduino-Chunithm-Controller
使用 Arduino 制作的 Chunithm 控制器。
Stars: ✭ 29 (+123.08%)
Mutual labels:  keyboard
prk firmware
A keyboard firmware platform in PicoRuby
Stars: ✭ 337 (+2492.31%)
Mutual labels:  keyboard
EmojiKeyBoard
自定义表情键盘(支持系统表情, 图片表情),仅供参考学习~
Stars: ✭ 36 (+176.92%)
Mutual labels:  keyboard
chromeos-key-remapper
IME / tooling for remapping key combos to other key combos on Chrome OS
Stars: ✭ 29 (+123.08%)
Mutual labels:  keyboard
ng-virtual-keyboard
Virtual Keyboard for Angular applications
Stars: ✭ 25 (+92.31%)
Mutual labels:  keyboard
keyboard recording trojan
一个可以记录键盘输入并发送到指定邮箱的简单木马。
Stars: ✭ 63 (+384.62%)
Mutual labels:  keyboard

kiibohd-animation-generator

Node.js script for generating animations for kiibohd configurator import

Setup:

This requires node and npm to run. In order to use, cd to the repo directory and run "npm install", and then you can run "node kiianigen.js {generator name} {ktype standard dir}". See documentation in kiianigen.js script for more details on usage. Note that at this time, the arguments are positional, and at least the generator name is required (unless you wish to see the generator names, as detailed below). Also, a directory containing a pre-existing KType-Standard configuration output from the kiibohd configurator is required. Preferably, this directory should be next to the animation generator directory, but if not, the path to the directory can be provided (i.e. "node kiianigen.js {generator name / conf / all} {ktype standard dir if not at ../KType-Standard}" -- see workflow below.)

Usage with kiianiconf.json:

You can now run "node kiianigen.js conf", which will pull in the local file kiianiconf.json and use this as a basis for defining which generators to use in your configuration. If you do not yet have this file in your directory (here), a demo version of kiianiconf.json will be autogenerated when you run "node kiianigen.js conf".

Generators configurable from kiianiconf.json:

  1. kitt2000 -- kitt2000 creates a sweeping color animation (left to right to left) reminiscent of Kitt's grill animation in Knight Rider. (not to be confused with the Cylon eye animation). This is configurable from kiianiconf by providing any of 3 parameters. "params": [[255,0,0], [0,0,0], 5] -- where the first item is a 3 number array representing the animation color, the second item is the 3 number array representing the background color (defaults to black), and the third represents the width of the animating bacd of color (defaults to 5, max is 25)
  2. dodgyPixel -- this simply creates an animation where random pixels light up. There are currently 2 parameters: "params": [[pixel color array], [bg color array]] -- the defaults are [255,255,255] and [25,25,25]
  3. macSleepBreath -- this animation emulates the old macbook sleeping led light that pulsed with the rhythm of a human's breath while sleeping. The current parameters are: "params": [[high color], [low color]] -- where you can basically use any colors here to fade back and forth through. The defaults for this are [255,255,255] and [1,1,1]. (light and dark) The color fades are based on a sine curve.
  4. baseTopBreath -- this is similar to macSleepBreath, except that the colors cycle between the keyboard and the keyboard base leds. Parameters are: "params": [[high color], [low color]] -- the defaults are green and blue.
  5. linearPulse -- exactly like macSleepBreath, except that the algorithm used to generate the color fades is linear, rather than being based on a sine curve.
  6. whiteNoise -- (subject to change soon...) -- this one takes a single parameter which is: "params": [frameCount] -- where frameCount is the number of frames generated. I am thinking of also adding an optional color. Currently this simulates white noise (TV static).
  7. verticalPulseWithTracers -- this one pulses the colors between the top and bottom layer of the keyboard while tracers on the base start at the middle front and wrap right and left around to the back. This takes multiple parameters. "params": [stepsPerColor, ... color arrays] --The first parameter is the number of frames that it takes to transition from one color to the next. The rest of the parameters (any number) specify the 3 item color arrays that should be used. If you specify red, green, and blue color arrays, the top will start with red and animate through the colors, while the bottom will start with green and cycle through the colors.

There are other generators which can be used in the conf file, but they do not currently accept parameters, so they will use whatever parameters are baked in.

Usage with generator names:

Generator names can be found in the "generators" object definition in the kiianigen.js file, or by invoking "node kiianigen.js" with no specified generator. This will print out all available generators.

NOTE: At this point I would not recommend running with "node kiianigen.js all" unless you comment out some of the generators. I've had issues flashing the keyboard with all the current animations, haven't had time to figure out why that is.

Workflow:

  1. Run kiibohd configurator and output the configuration the way you like it (such as swapped keys for mac, etc. etc.)
  2. Move that configurator generated directory next to the directory for kiibohd-animation-generator named "KType-Standard"
  3. Run "node kiianigen.js {generator name} {ktype standard dir if not at ../KType-Standard}"
  4. Find the latest output in the json_out directory, copy contents
  5. Open kiibohd configurator, click the up arrow/import button and paste the contents of the json file into the text box.
  6. Click the down arrow/export button in the configurator
  7. Set the keyboard in flash mode and click the Flash button in the configurator.
  8. Once done, you should be able to press f1:Q, f1:W, f1:E, etc. to toggle the animations.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].