Skip to content

Commit 52fbf44

Browse files
committed
Add common functions script
1 parent 0352e69 commit 52fbf44

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,34 @@
55

66
### Examples of bits and pieces running at Jessie level
77

8-
Scripts are available also as zip/tgz on the [releases page](https://github.com/BertLindeman/bert-ev3dev-examples/releases)
9-
Issues can be found [here](https://github.com/BertLindeman/bert-ev3dev-examples/issues) and edited.
8+
Scripts are available also as zip/tgz on the [releases page](https://github.com/BertLindeman/bert-ev3dev-examples/releases).
9+
10+
Issues can be found [here](https://github.com/BertLindeman/bert-ev3dev-examples/issues).
1011

1112
These shell-scripts are located on my EV3-brick at `/usr/local/bin`
1213
but with some simple edits you can place them where **you** want them.
1314
They are are meant to be run on a terminal session, like in an ssl-session.
1415

1516
1. Supporting scripts used by other scripts
1617
* [asciicolor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/asciicolors) Creates some variables to ease using ANSI colors in shell script. E.G. red blue etc.
18+
* [bert_ev3dev_functions](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/bert_ev3dev_functions) Replaces asciicolor and adds some common functions.
1719
2. Scripts related to managing the EV3-brick
1820
* [checkpower](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/checkpower) Add this script to a crontab to check for the battery voltage. On lower power the EV3-led on the left will blink green on lower voltage, then amber and eventually red (with a beep).
1921
Uses [blinkvoltage](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/blinkvoltage)
2022
* [showactivity](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showactivity) Makes the right green led blink on I/O activity.
2123
* [stopmotors](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/stopmotors) Well, stops all motors.
2224
3. Scripts discovering sensors and / or motors
2325
* [blinkleds](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/blinkleds) Simply blink the EV3 leds a few times.
24-
* [setled](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/setled) Script to set an EV3-led **red** / **green** / **amber** **ON** or **OFF** and set a trigger for it. Do not confuse with **setleds** program to set keyboard leds.
25-
* [showleds](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showleds) Provides a very small display of the status of the EV3-leds.
26+
* [setled](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/setled) Script to set an EV3-led **red**, **green** or **amber** to **ON** or **OFF** and set a trigger for it. Do not confuse with **setleds** program to set keyboard leds.
27+
* [showleds](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showleds) Provides a small display of the status of the EV3-leds.
2628
* [showmotor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showmotor) Finds the tacho-motor number for attached motors. Displays many fields related to the motor(s). Tested with EV3 (large and servo) and NXT motor.
2729
* [showpower](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showpower) Shows various fields related to the EV3-power.
2830
* [showsensors](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showsensors) Show data about connected sensors. Only *regular* sensors that are recognized are reported, I assume I2C sensors are not yet supported by the script.
2931
* [showsound](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showsound) Shows a little info from the snd-legoev3 driver. (Not to be confused with the sound-sensor!)
3032
* [testmotor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/testmotor) Test one motor. Too simple script, only uses a fixed suffix on ```/sys/class/tacho-motor/tacho-motor``` The kernel takes the *next* number if a motor is plugged in. Algorithm in **showmotor** is connecting motor port to tacho-motor suffix. You can call testmotor with one parameter: the number of the motor. E.g. ```testmotor 3```
3133

3234

33-
### Have your EV3 report the IP-address by speach after boot
35+
### Have your EV3 report the IP-addresses by speach after boot
3436
For this an update is needed to `/media/mmc_p1/ev3dev.rc.local`
3537

3638
Add the next lines to the bottom of `/media/mmc_p1/ev3dev.rc.local`

0 commit comments

Comments
 (0)