Git Product home page Git Product logo

blink1.el's Introduction

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))))

Alternatives / Related Projects

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.