Skip to content

Neovim plugin to control neopixel-leds connected through an arduino/attiny via usb

License

Notifications You must be signed in to change notification settings

arrowtip/vim-mode-leds.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-mode-leds

Usage

Packer

Add the plugin to packer:

use { arrowtip/vim-mode-leds.nvim }

And configure it (both path_to_leds and colors are optional):

require("vim-mode-leds").setup({ 
    -- usually path will be /dev/ttyACM0
    path_to_leds = "path/to/led/device/file",
    -- colors are 8bit hexadecimal WRGB values
    colors = {
        normal = "\\x03" -- blue
        visual = "\\x3c" -- yellow
        select = "\\x0c" -- green
        insert = "\\xff" -- white
        cmdline = "\\x30" -- red
        ex = "\\x34" -- orange
        terminal = "\\x33" -- purple
        idle = "\\x00" -- off
    }})

Troubleshooting:

Check the permission of the device. Your device should be writable by the user. This is an easy fix:

usermod -a -G uucp $USER
chmod g+w /dev/ttyACM0

About

Neovim plugin to control neopixel-leds connected through an arduino/attiny via usb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages