Node.js 8 library for interacting with the Anne Pro keyboard
IMPORTANT: only works in macOS currently
Current Features:
- set lighting mode
- set lighting mode speed and brightness
- set layout
Roadmap:
- Macros
npm install anne-pro
Or if you want to use the command line utility:
npm install -g anne-pro
$ anne
Usage: [options] [command]
Options:
-h, --help output usage information
Commands:
lighting|l [options] <mode> sets the keyboard lighting effect
layout|lt <name> sets the keyboard layout
$ anne lighting rai
Lighting effect Rainbow set
$ anne layout arr
Layout WindowsArrows set
const AnneProKeyboard = require('anne-pro');
new AnneProKeyboard().connect().then(kb => {
console.log('setting Rainbow effect');
kb.setLightingMode(AnneProKeyboard.LightingModes.Rainbow);
process.exit(0);
}).catch(error => {
console.log(error.toString());
process.exit(1);
});
This library relies on a modified version of Sandeep Mistry's node-core-bluetooth library that can be found here.
The code is written based on the Swift code written by Michiel Visser for the AnnePro-mac app, which is awesome!