Comments (16)
Hello @massimiliano-della-rovere @kieranajp @brandonchinn178 !
i just updated all the documentation pertaining the Focus.API, so happy hacking! 😄
from bazecor.
Hello! I started working on a Python API for Dygma. It's very work in progress, and it probably only supports my specific configuration, but hopefully, it's a start.
The primary motivation was to configure my mapping in a YAML file and then use the Dygma CLI tool packaged with the API to sync it to the keyboard. Happy to get more eyes on this, and get anyone else to partner on this work
https://github.com/brandonchinn178/dygma
from bazecor.
Thanks @brandonchinn178!
@massimiliano-della-rovere I paste here the questions that you emailed me related to this topic, so all the information it's in the same place:
There will be APIs to program the keys or at least the protocol used with /dev/ttyACM0?
I'd like to use the Neuron led and some underglow LEDs to monitor external events, like disk/cpu/ram/network usage, or some info coming from IoT devices or a fancy thing like "you have new email" blinking LEDs (I'd love to use python asyncio technology for doing this).
it would be necessary having a description of both the protocol and the data structure ;)
@algernon I don't have the tech knowledge to answer this question 😅
from bazecor.
from bazecor.
Hi @massimiliano-della-rovere!
It sounds like you basically want some function you can call that can change a specific key to a color, maybe
conn = DygmaConnection(...)
config = read_config('dygma.yaml')
conn.set_key_color(Key.ESC, config.palette, 'blue')
?
If that's the case, implementing set_key_color
shouldn't be too difficult:
- Download the current color map
- Update the given key
- Re-upload the color map
The downside is that the key color would be erased when re-syncing the config file, but I think that's fine for now?
from bazecor.
from bazecor.
from bazecor.
from bazecor.
look through the bazecor code for any mentions of .focus()
😛 i just reverse engineered it
but for what you need to do, the api i have right now should be sufficient
from bazecor.
from bazecor.
from bazecor.
from bazecor.
@massimiliano-della-rovere I'm sorry, I'm not sure if I understand what you guys are talking about 😅. What I understand is that you want an API so the keyboard can receive information from outside and change it's LED state. Is that correct?
If that's the case, I think it would be awesome.
@algernon could you answer their questions?
from bazecor.
from bazecor.
Adding my voice to this - I'd love to be able to try and get Chroma / Hue sync working, which is going to be tricky enough even with docs for Raise's API :)
from bazecor.
from bazecor.
Related Issues (20)
- Unable to import Virtual Defy json file HOT 1
- [Feature] Add way to get current layout from system (or at least make it easier to add/modify one)
- Cannot map Ghe with upturn ( Ґ ) to a key. HOT 1
- Missing mouse controls in RC2 HOT 1
- Defy: Macro crashes keybord
- Ability to have different keys per operating system HOT 2
- Firmware Update hangs on "4. Flashing Neuron" HOT 9
- Superkey layer shift reverts to default layer, not originating layer, when released HOT 1
- Multiple modifiers on dual function keys "hold" action
- Bulk Edit both keys and colors HOT 1
- Changing Mouse keys has no effect
- Callout colors do not have enough contrast
- typo in color HOT 2
- Remove prop-types lint rule HOT 1
- Palette color "6" can not be white HOT 5
- Color sliders don't go to 0
- Color slider with focus doesn't update number
- One Shot Layer support for superkeys HOT 1
- "Battery Level" key displayed as "SUPER 129"
- Inconsistent icons and casing used for media buttons and apps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazecor.