Project

pilite

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Rubygem for sending commands to 'Pi-LITE' board through serial port communication
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

PiLITE-rb

Gem Version

For controlling Pi-LITE board on Raspberry Pi with Ruby or Rails.

Pi-LITE is a 14x9 LED control board that can be found here: http://shop.ciseco.co.uk/pi-lite-lots-of-leds-for-the-raspberry-pi-0805-red/

1. Setup

a. disable serial port login

$ sudo vi /etc/inittab

comment out the last line from:

T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

to:

#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

b. disable bootup info

$ sudo vi /boot/cmdline.txt

edit following line:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

to:

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

c. Add user to group dialout

$ sudo usermod $USER -a -G dialout

d. Reboot

$ sudo shutdown -r now

2. Install pilite

$ gem install pilite

3. Run

$ pilite help

or

require 'pilite'

PiLite::Commands.start{|lite|
  lite.all :on
  sleep 1 
  lite.all :off
}

4. TODOs

  • add some test scripts