Giter Club home page Giter Club logo

blinkt's Introduction

blinkt


Description

This command-line tool controls the LEDs on the Blinkt! add-on board for the Raspberry Pi. All functions are available from the command line; no additional programming needed. Can be used within shell scripts.

Usage

To clear the LEDs to their default state, type:

blinkt clear

To turn on all the LEDs blue, type:

blinkt blue

The named colors available are red coral orange gold yellow lime green aqua blue purple pink white.

Pixels are numbered 0-7 from left to right. To turn pixel 1 yellow, type:

blinkt p1 yellow

To specify color by RGB, type, e.g.:

blinkt rgb 10 0 50

To turn on the left 4 LEDs blue and right 4 LEDs red, type:

blinkt 11110000 blue
blinkt 00001111 red

To change the brightness of all pixels to 12, type:

blinkt bright 12

For more information, see man page.

Build and install

  • Raspbian Bullseye
sudo apt install git
sudo apt install pigpio
git clone https://github.com/7402/blinkt.git
cd blinkt
make
sudo make install

Notes

To run blinkt, either use sudo:

sudo blinkt

or start the pigpiod daemon:

sudo pigpiod
blinkt

To auto-start pigpiod on boot:

sudo systemctl enable pigpiod

(The LEDs respond faster when not using the daemon.)

If you are viewing your Blinkt! board upside-down from its standard orientation, i.e., the letters "BLINKT!" on the circuit board are upside down, type this command to adjust the numbering direction:

blinkt right

License

BSD

blinkt's People

Contributors

7402 avatar

Stargazers

chach avatar pph avatar Arthur Neuman avatar frankfanslc avatar Jeremy Mayer avatar Taha Dhiaeddine Amdouni avatar David Glaude avatar

Watchers

Russell Davis avatar Kostas Georgiou avatar

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.