Coder Social home page Coder Social logo

Comments (16)

AlexDygma avatar AlexDygma commented on June 14, 2024 2

Hello @massimiliano-della-rovere @kieranajp @brandonchinn178 !

i just updated all the documentation pertaining the Focus.API, so happy hacking! 😄

from bazecor.

brandonchinn178 avatar brandonchinn178 commented on June 14, 2024 1

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.

LuisSevilla avatar LuisSevilla commented on June 14, 2024

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.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

brandonchinn178 avatar brandonchinn178 commented on June 14, 2024

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:

  1. Download the current color map
  2. Update the given key
  3. 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.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

brandon-leapyear avatar brandon-leapyear commented on June 14, 2024

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.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

brandonchinn178 avatar brandonchinn178 commented on June 14, 2024

from bazecor.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

LuisSevilla avatar LuisSevilla commented on June 14, 2024

@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.

massimiliano-della-rovere avatar massimiliano-della-rovere commented on June 14, 2024

from bazecor.

kieranajp avatar kieranajp commented on June 14, 2024

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.

mattvenn avatar mattvenn commented on June 14, 2024

from bazecor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.