Linux rpihobby01 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
curl -sSL get.pimoroni.com/skywriter | bash
sudo apt-get install python-smbus
sudo reboot
pi@rpihobby01:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- 42 -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@rpihobby01:~/skywriter-hat-master/python/examples $ sudo ./test.py
Got firmware info
Got firmware info
Got firmware info
...
^CTraceback (most recent call last):
File "./test.py", line 37, in <module>
signal.pause()
KeyboardInterrupt
Got firmware info
pi@rpihobby01:~ $ mkdir tmp
pi@rpihobby01:~ $ cd tmp
pi@rpihobby01:~/tmp $ git clone https://github.com/besherman/skywriter-hat.git
Cloning into 'skywriter-hat'...
remote: Counting objects: 236, done.
remote: Total 236 (delta 0), reused 0 (delta 0), pack-reused 236
Receiving objects: 100% (236/236), 1.99 MiB | 1.00 MiB/s, done.
Resolving deltas: 100% (88/88), done.
Checking connectivity... done.
pi@rpihobby01:~/tmp $ cd skywriter-hat/python/library/
pi@rpihobby01:~/tmp/skywriter-hat/python/library $ sudo python setup.py install
running install
running bdist_egg
running egg_info
creating skywriter.egg-info
writing requirements to skywriter.egg-info/requires.txt
writing skywriter.egg-info/PKG-INFO
writing top-level names to skywriter.egg-info/top_level.txt
writing dependency_links to skywriter.egg-info/dependency_links.txt
writing manifest file 'skywriter.egg-info/SOURCES.txt'
reading manifest file 'skywriter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'skywriter.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-2.7
copying skywriter.py -> build/lib.linux-armv7l-2.7
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
copying build/lib.linux-armv7l-2.7/skywriter.py -> build/bdist.linux-armv7l/egg
byte-compiling build/bdist.linux-armv7l/egg/skywriter.py to skywriter.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying skywriter.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying skywriter.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying skywriter.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying skywriter.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying skywriter.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/skywriter-0.0.2-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing skywriter-0.0.2-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/skywriter-0.0.2-py2.7.egg
Copying skywriter-0.0.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages
skywriter 0.0.2 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/skywriter-0.0.2-py2.7.egg
Processing dependencies for skywriter==0.0.2
Searching for smbus==1.1
Best match: smbus 1.1
smbus 1.1 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for skywriter==0.0.2
pi@rpihobby01:~/tmp/skywriter-hat/python/library $ cd ../examples/
pi@rpihobby01:~/tmp/skywriter-hat/python/examples $ ./test.py
Got firmware info
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "build/bdist.linux-armv7l/egg/skywriter.py", line 103, in run
if self.todo() == False:
File "build/bdist.linux-armv7l/egg/skywriter.py", line 332, in _do_poll
handle_firmware_info(data)
File "build/bdist.linux-armv7l/egg/skywriter.py", line 289, in handle_firmware_info
raise Exception("No valid GestIC Library could be located")
Exception: No valid GestIC Library could be located
^CTraceback (most recent call last):
File "./test.py", line 37, in <module>
signal.pause()
KeyboardInterrupt
theremin.pd
Show off your musical prowess and melodic genius with this groundbreaking 3D theremin.
Designed to be run within X, startx first.
To run, you'll need to install PD:
sudo apt-get install pd
Run as follows:
pd theremin.pd
curl -sSL get.pimoroni.com/skywriter | bash
./test.py
(0.1373443603515625, 0.4677734375, 0.583984375)
(0.1373443603515625, 0.469085693359375, 0.584747314453125)
(0.1373443603515625, 0.4705810546875, 0.585723876953125)
(0.1373443603515625, 0.472259521484375, 0.5869903564453125)
(0.1373443603515625, 0.4741668701171875, 0.588623046875)
(0.1373443603515625, 0.4763336181640625, 0.5908355712890625)
('Airwheel:', 58.1)
(0.0, 0.9999847412109375, 0.0)
(0.005462646484375, 0.9999847412109375, 0.0)
('Airwheel:', 58.2125)
(0.03070068359375, 0.9999847412109375, 0.0)
(0.072998046875, 0.9999847412109375, 0.0)
(0.1355743408203125, 0.9999847412109375, 0.0)
(0.2272796630859375, 0.9999847412109375, 0.0)
('Touch!', 'north')
(0.359344482421875, 0.9999847412109375, 0.0)
(0.5264434814453125, 0.9999847412109375, 0.0)
('Tap!', 'north')
(0.0, 0.9999847412109375, 0.334686279296875)
(0.0, 0.9999847412109375, 0.3322906494140625)
('Got a flick!', 'north', 'south')
^CTraceback (most recent call last):
File "./test.py", line 37, in <module>
signal.pause()
KeyboardInterrupt
./synth.py
Populating temp PD file: /tmp/tmp_YpD0g
Started PD with PID: 12837
File: /tmp/tmp_YpD0g
Attempting to connect to PD
Connected to PD
pd ./theremin.pd
sh: 1: wish: not found
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
watchdog: signaling pd...
ssh -X user@ipa.ddr.ess.pi
ssh -Y user@ipa.ddr.ess.pi
export DISPLAY=:0.0
# Define GPIO to LCD mapping
LCD_RS = 26
LCD_E = 19
LCD_D4 = 13
LCD_D5 = 6
LCD_D6 = 5
LCD_D7 = 11
sudo python
import os
import lcd_16x2
lcd_16x2.lcd_init()
lcd_16x2.main()
def lcd_string(message, line, justified = 0) :
# Send string to display
if justified == 0 :
message = message.ljust(LCD_WIDTH," ")
elif justified == 1 :
message = message.center(LCD_WIDTH," ")
else :
message = message.rjust(LCD_WIDTH," ")
if line == 1 :
line = LCD_LINE_1
else :
line = LCD_LINE_2
lcd_byte(line, LCD_CMD)
for i in range(LCD_WIDTH):
lcd_byte(ord(message[i]),LCD_CHR)
import os
import lcd_16x2
lcd_16x2.lcd_init()
lcd_16x2.lcd_string("LeftAlign Ln1",1,0)
lcd_16x2.lcd_string("RightAlign Ln2",2,2)
lcd_16x2.lcd_string("Center Ln1",1,1)
email
root
flog archives
Disclaimer:
This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk
I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk
In fact I'm not responsible for anything ever, so there!