From fbc5d302b76de9b735a3845486591c86b6d8a901 Mon Sep 17 00:00:00 2001 From: Ragnar Jensen Date: Sun, 2 Oct 2016 15:30:47 +0200 Subject: [PATCH] Update README.md Added instructions for actledPi --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 39cc225..630638e 100644 --- a/README.md +++ b/README.md @@ -3,22 +3,27 @@ For the Raspberry Pi - Make LEDs blink on network and/or SD card/USB storage act hddledPi blinks a LED on any mass storage access. Not only on SD card access, but also on USB thumbdrive and hard drive activity. netledPi blinks a LED 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. -netledPi and hddledPi make use of Gordon Henderson's wiringPi library - wiringpi.com - so you have to have that installed in order to build the programs. +netledPi and hddledPi make use of Gordon Henderson's wiringPi library - wiringpi.com - so you have to have that installed in order to build the programs. actledPi is a standalone, no special libraries are needed. Building the programs is easy: gcc -Wall -O3 -o netledPi netledPi.c -lwiringPi -gcc -Wall -O3 -o hddledPi hddledPi.c -lwiringPi +gcc -Wall -O3 -o hddledPi hddledPi.c -lwiringPi +gcc -Wall -O3 -o actledPi actledPi.c hddledPi uses wiringPi pin 10 by default. It is BCM_GPIO 8, physical pin 24 on the Pi's P1 header. netledPi uses wiringPi pin 11 by default. It is BCM_GPIO 7, physical pin 25 on the Pi's P1 header. Note: These pins are also used for the SPI interface. If you have SPI add-ons connected, you'll have to use the -p option to change to another, unused pin. -Options: +Options for netledPi and hddledPi: -d, --detach Detach from terminal (become a daemon), -p, --pin=VALUE GPIO pin (using wiringPi numbering scheme) where LED is connected -r, --refresh=VALUE Refresh interval (default: 20 ms) - The programs need super-user privileges, so you have to start them with "sudo", e.g. + Options for actledPi: + -d, --detach Detach from terminal (become a daemon) + -r, --refresh=VALUE Refresh interval (default: 20 ms) + + netledPi and hddledPi need super-user privileges, so you have to start them with "sudo", e.g. sudo netledPi -d -p 29 - I have only tested them with Raspbian. + I have only tested the programs on Raspbian.