<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.openmoko.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;feed=atom&amp;action=history</id>
		<title>Talk:Freerunner LightSaber - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;action=history"/>
		<updated>2013-05-18T09:49:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.6</generator>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=81334&amp;oldid=prev</id>
		<title>ChrisPZV at 18:19, 20 June 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=81334&amp;oldid=prev"/>
				<updated>2010-06-20T18:19:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:19, 20 June 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;I'm running SHR-T de_DE localized as described here: http://wiki.openmoko.org/wiki/Configure_SHR_for_German-speaking_use&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;After &amp;lt;pre&amp;gt;tar -xvf ko-lightsaber.tar -C /&amp;lt;/pre&amp;gt; I was able to run the application and heard light saber switched on but no sound when swinging around my Openmoko Freerunner. Any suggestions?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;--ChrisPZV 18:19, 20 June 2010 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ChrisPZV</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75438&amp;oldid=prev</id>
		<title>Tomix at 23:36, 1 September 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75438&amp;oldid=prev"/>
				<updated>2009-09-01T23:36:41Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:36, 1 September 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tomix</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75437&amp;oldid=prev</id>
		<title>Tomix at 23:34, 1 September 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75437&amp;oldid=prev"/>
				<updated>2009-09-01T23:34:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:34, 1 September 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tomix</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75436&amp;oldid=prev</id>
		<title>Tomix at 23:33, 1 September 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75436&amp;oldid=prev"/>
				<updated>2009-09-01T23:33:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:33, 1 September 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/usr/bin/python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;import struct&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 156:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 157:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.main()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; gtk.gdk.threads_leave()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tomix</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75435&amp;oldid=prev</id>
		<title>Tomix: New page: #!/usr/bin/python import struct from math import sqrt import pygame.mixer  import os import threading import gtk import time  #Created by Kris Occhipinti #www.filmsbykris.com #Jan. 16 2009...</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Talk:Freerunner_LightSaber&amp;diff=75435&amp;oldid=prev"/>
				<updated>2009-09-01T23:32:59Z</updated>
		
		<summary type="html">&lt;p&gt;New page: #!/usr/bin/python import struct from math import sqrt import pygame.mixer  import os import threading import gtk import time  #Created by Kris Occhipinti #www.filmsbykris.com #Jan. 16 2009...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;#!/usr/bin/python&lt;br /&gt;
import struct&lt;br /&gt;
from math import sqrt&lt;br /&gt;
import pygame.mixer &lt;br /&gt;
import os&lt;br /&gt;
import threading&lt;br /&gt;
import gtk&lt;br /&gt;
import time&lt;br /&gt;
&lt;br /&gt;
#Created by Kris Occhipinti&lt;br /&gt;
#www.filmsbykris.com&lt;br /&gt;
#Jan. 16 2009&lt;br /&gt;
#Copyright 2009 Kris Occhipinti&lt;br /&gt;
#Some changes by tomix&lt;br /&gt;
#program is distributed under the terms of the GNU GPL&lt;br /&gt;
&lt;br /&gt;
#    This program is free software: you can redistribute it and/or modify&lt;br /&gt;
#    it under the terms of the GNU General Public License as published by&lt;br /&gt;
#    the Free Software Foundation, either version 3 of the License, or&lt;br /&gt;
#    (at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
#    This program is distributed in the hope that it will be useful,&lt;br /&gt;
#    but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
#    GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
#    You should have received a copy of the GNU General Public License&lt;br /&gt;
#    along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
saberoff=&amp;quot;/usr/share/ko-lightsaber/saberoff.ogg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
pygame.mixer.init() &lt;br /&gt;
soff=pygame.mixer.Sound(saberoff) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ledon=&amp;quot;echo '1'&amp;gt; /sys/devices/platform/gta02-led.0/leds\:gta02-power\:blue/brightness&amp;quot;&lt;br /&gt;
ledoff=&amp;quot;echo '0'&amp;gt; /sys/devices/platform/gta02-led.0/leds\:gta02-power\:blue/brightness&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class MyThread ( threading.Thread ):&lt;br /&gt;
    def run (self):&lt;br /&gt;
	self.hum=&amp;quot;/usr/share/ko-lightsaber/hum.ogg&amp;quot;&lt;br /&gt;
	self.saberon=&amp;quot;/usr/share/ko-lightsaber/saberon.ogg&amp;quot;&lt;br /&gt;
	self.crash=&amp;quot;/usr/share/ko-lightsaber/crash1.ogg&amp;quot;&lt;br /&gt;
	self.swing=&amp;quot;/usr/share/ko-lightsaber/swing1.ogg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	self.on=pygame.mixer.Sound(self.saberon) &lt;br /&gt;
	self.on.play()&lt;br /&gt;
&lt;br /&gt;
	self.sound = pygame.mixer.Sound(self.hum) &lt;br /&gt;
	self.sound.play(loops=-1, maxtime=0, fade_ms=0)&lt;br /&gt;
&lt;br /&gt;
	self.swingsound=pygame.mixer.Sound(self.swing)&lt;br /&gt;
	self.crashsound=pygame.mixer.Sound(self.crash)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	self.q = 0&lt;br /&gt;
	self.x = 0&lt;br /&gt;
	self.y = 0&lt;br /&gt;
	self.z = 0&lt;br /&gt;
	self.secondsensorfile = &amp;quot;/dev/input/event3&amp;quot;&lt;br /&gt;
	#int, int, short, short, int&lt;br /&gt;
	fmt = 'iihhi'&lt;br /&gt;
	#open file in binary mode&lt;br /&gt;
	in_file = open(self.secondsensorfile,&amp;quot;rb&amp;quot;)&lt;br /&gt;
	event = in_file.read(16)&lt;br /&gt;
	while event:&lt;br /&gt;
        	(time1,time2, type, code, value) = \&lt;br /&gt;
                	struct.unpack(fmt,event)&lt;br /&gt;
        	#timea = time1 + time2 / 1000.0&lt;br /&gt;
		timea = time2 / 1000.0&lt;br /&gt;
&lt;br /&gt;
	        #if type == 2:&lt;br /&gt;
		if type == 2 or type == 3:&lt;br /&gt;
        	        if code == 0:&lt;br /&gt;
                	        self.x = value&lt;br /&gt;
	                if code == 1:&lt;br /&gt;
        	                self.y = value&lt;br /&gt;
                	if code == 2:&lt;br /&gt;
	                        self.z = value&lt;br /&gt;
	        if type == 0 and code == 0:&lt;br /&gt;
        	        sum = int(sqrt(self.x*self.x + self.y*self.y + self.z*self.z))&lt;br /&gt;
                	print timea, self.x, self.y, self.z, sum&lt;br /&gt;
                	if self.y &amp;lt; 0:&lt;br /&gt;
                        	if self.q == 0:&lt;br /&gt;
					self.swingsound.play()&lt;br /&gt;
                                	print &amp;quot;LEFT&amp;quot;&lt;br /&gt;
                                	self.q = 1&lt;br /&gt;
&lt;br /&gt;
                	if self.y &amp;gt; 0:&lt;br /&gt;
                        	if self.q == 1:&lt;br /&gt;
					self.crashsound.play()&lt;br /&gt;
					os.system(ledon)&lt;br /&gt;
				        os.system(&amp;quot;echo '255' &amp;gt; /sys/class/leds/neo1973\:vibrator/brightness&amp;quot;)&lt;br /&gt;
					#time.sleep(.1)&lt;br /&gt;
				        os.system(&amp;quot;echo '0' &amp;gt; /sys/class/leds/neo1973\:vibrator/brightness&amp;quot;)&lt;br /&gt;
					os.system(ledoff)&lt;br /&gt;
                                	print &amp;quot;RIGHT&amp;quot;&lt;br /&gt;
                                	self.q = 0&lt;br /&gt;
&lt;br /&gt;
        	event = in_file.read(16)&lt;br /&gt;
	in_file.close()&lt;br /&gt;
&lt;br /&gt;
gtk.gdk.threads_init()&lt;br /&gt;
class ImageClick(object):&lt;br /&gt;
&lt;br /&gt;
    def __init__(self):&lt;br /&gt;
&lt;br /&gt;
	MyThread().start()&lt;br /&gt;
&lt;br /&gt;
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)&lt;br /&gt;
        self.window.connect('destroy', lambda w: gtk.main_quit())&lt;br /&gt;
        self.window.set_title(&amp;quot;KO-Lightsaber by: Kris Occhipinti&amp;quot;)&lt;br /&gt;
	self.window.set_border_width(10)&lt;br /&gt;
        #get the curront path&lt;br /&gt;
&lt;br /&gt;
#create the table&lt;br /&gt;
        self.box = gtk.VBox()&lt;br /&gt;
	self.window.add(self.box)&lt;br /&gt;
        self.box.show()&lt;br /&gt;
########################&lt;br /&gt;
	self.label1 = gtk.Label(&amp;quot;KO-Lightsaber by: Kris Occhipinti&amp;quot;)&lt;br /&gt;
        self.box.pack_start(self.label1, False, False, 0)&lt;br /&gt;
        self.label1.show()&lt;br /&gt;
#########################&lt;br /&gt;
	button = gtk.Button(&amp;quot;Exit&amp;quot;)&lt;br /&gt;
        button.connect(&amp;quot;clicked&amp;quot;, self.destroy)&lt;br /&gt;
        self.box.pack_start(button)&lt;br /&gt;
        button.show()&lt;br /&gt;
#########################&lt;br /&gt;
&lt;br /&gt;
        self.window.show()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    def destroy(self, widget, data=None):&lt;br /&gt;
	soff.play()&lt;br /&gt;
	time.sleep(2)&lt;br /&gt;
	os.system(&amp;quot;echo '0'&amp;gt; /sys/devices/platform/gta02-led.0/leds\:gta02-power\:blue/brightness&amp;quot;)&lt;br /&gt;
        os.system(&amp;quot;echo '0' &amp;gt; /sys/class/leds/neo1973\:vibrator/brightness&amp;quot;)&lt;br /&gt;
        t2 = os.getpid()&lt;br /&gt;
        print t2&lt;br /&gt;
        os.system(&amp;quot;kill &amp;quot; + str(t2))&lt;br /&gt;
        print &amp;quot;EXIT&amp;quot;&lt;br /&gt;
        gtk.main_quit()&lt;br /&gt;
&lt;br /&gt;
    def main(self):&lt;br /&gt;
            gtk.main()&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    image_click = ImageClick()&lt;br /&gt;
    image_click.main()&lt;br /&gt;
&lt;br /&gt;
    gtk.gdk.threads_enter()&lt;br /&gt;
    gtk.main()&lt;br /&gt;
    gtk.gdk.threads_leave()&lt;/div&gt;</summary>
		<author><name>Tomix</name></author>	</entry>

	</feed>