View source for User:Kd8ikt

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to User:Kd8ikt.

Personal tools

much <3 openmoko

James Lutz Cincinnati, Ohio USA

kd8ikt at fuse.net

my useless home hosted webserver ipv6+ipv4
http://we.trekbeyond.org/

call me on my moko 513 476 nine six nine four

Current Projects

bubble level

  • STAGE=planning
    • pygtk ?

using accelerometer input we will make a simple bubble level

Rave shell script

randomly togles all the lights on/off


#!/bin/bash

#Define Constants
e=echo
aux_r=/sys/class/leds/gta02-aux\:red/brightness
pow_b=/sys/class/leds/gta02-power\:blue/brightness
pow_o=/sys/class/leds/gta02-power\:orange/brightness
#vib=/sys/class/leds/neo1973\:vibrator/brightness

#DEFINE VARIABLE
chilltime=1

#DEFINE RANDOM # GENERATOR FUNCTION
get_rand(){
randy=$RANDOM
RANGE=2
let "randy %= $RANGE"
}

while [ 1 == 1 ]; do
sleep $chilltime
get_rand
$e $randy > $aux_r
get_rand
$e $randy > $pow_b
get_rand
$e $randy > $pow_o

done