https://github.com/mishamyrt/keychron-go
🎹 Library to control Keychron keyboards
https://github.com/mishamyrt/keychron-go
cli-tools keychron rgb-led
Last synced: 7 months ago
JSON representation
🎹 Library to control Keychron keyboards
- Host: GitHub
- URL: https://github.com/mishamyrt/keychron-go
- Owner: mishamyrt
- License: gpl-3.0
- Created: 2023-03-13T19:24:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-23T00:04:21.000Z (about 3 years ago)
- Last Synced: 2025-02-24T23:42:36.959Z (over 1 year ago)
- Topics: cli-tools, keychron, rgb-led
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Keychron Protocol Library
Library that implements the Keychron keyboard backlight control protocol.
## Usage
```go
package main
import (
"image/color"
"github.com/mishamyrt/go-keychron"
"github.com/mishamyrt/go-keychron/pkg/effect"
"github.com/mishamyrt/go-keychron/pkg/hid"
)
func main() {
hid.Init()
b, err := keychron.Open(hid.K3V2Optical)
if err != nil {
panic(err)
}
m, _ := effect.Get(effect.RainMode)
m.Color = color.RGBA{0, 255, 255, 0}
b.Set(m)
}
```