blink1.el - Emacs client for the blink1 USB LED device
Goals
- Hack value
Installation
Install the `blink1-tool` command-line utility using the directions from here. Note:
If you are on a Linux-like OS, you will need to either run as root (<code> sudo blink1-tool</code>) or install udev rules as described in 51-blink1.rules.
Usage
Basic color pattern
Display basic color patterns by passing a list:
(blink1-play-pattern
'("#ff0000" "#00ff00" "#0000ff" "#ffffff"))
(blink1-play-pattern
'(lavender blue))
Example: Pomodoro Timer
With an emacs timer you can use the blink1 as a pomodoro timer:
(defun my/start-blink1-basic-pomodoro (time)
"Use the blink1 to indicate "
(interactive (list (read-string "Duration: " "15 minutes")))
(blink1-set-color 'black)
(blink1-glimmer :color 'green :num 3)
(run-at-time time nil (lambda () (blink1-glimmer :color 'red :num 3) (blink1-set-color 'orange))))