Git Product home page Git Product logo

piledlights-pigpiod's Introduction

PiLEDlights

Description

For the Raspberry Pi - Make LEDs blink on network and/or SD card/USB storage activity.

Based on the PiLEDLights project by Ragnar Jensen utilizing pigpio instead of WiringPi for GPIO manipulation.

hddledPi blinks a LED connected to a GPIO pin on any mass storage access. Not only on SD card access, but also on USB thumbdrive and hard drive activity.
netledPi blinks a LED connected to a GPIO pin when there is activity on any network interface. Not only the built-in ethernet interface, but also on any other USB ethernet or WiFi interface.
actledPi blinks the Pi's ACT led on all mass storage I/O, i.e. not only the SD card.

Prerequisites

This application uses pigpiod instead of WiringPi for GPIO manipulation.

To install the application
sudo apt-get update
sudo apt-get install pigpiod

Enable and start the service:
sudo systemctl enable pigpiod
sudo systemctl start pigpiod

Building

gcc -Wall -pthread -o actledPi actledPi.c
gcc -Wall -pthread -o netledPi netledPi.c -lpigpiod_if2 -lrt
gcc -Wall -pthread -o hddledPi hddledPi.c -lpigpiod_if2 -lrt

Installation

Copy the compiled program files to /usr/local/bin and follow the instructions in the initscripts README to run as a daemon.

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.