Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2c1e7e4
Add the start of a new GravityBlocks pattern. Only shows touched pixe…
ultrafez Sep 14, 2014
2909afc
Display incoming touches in the user's allocated colour
ultrafez Sep 14, 2014
52fd302
GravityBlocks server host:port should be passed in as an argument
ultrafez Sep 14, 2014
64edd9a
Coloured dots on the front face of the cube leave trails going toward…
ultrafez Sep 15, 2014
cb8629b
Receive touch data aimed at different cube faces. Currently just disp…
ultrafez Sep 17, 2014
b6df1af
Show lights from all faces on cube. Currently just adds colours (need…
ultrafez Sep 17, 2014
2774316
Prevent colour mixing from creating an RGB value that is out of bound…
ultrafez Sep 17, 2014
e699017
Improve comments
ultrafez Sep 17, 2014
96ca044
Bug fixes
ultrafez Sep 17, 2014
a3d2f03
temp
ultrafez Sep 18, 2014
dedd058
Fixed coordinate translation. All viewpoints work properly
ultrafez Sep 18, 2014
e4dca26
Change definition of "bottom" view; remove debug print statements
ultrafez Sep 18, 2014
4ea01df
Reimplement dot movement with a particle system. Add trails
ultrafez Sep 18, 2014
6b9becf
Play a sound when dots hit the cube sides
ultrafez Sep 23, 2014
7b66fee
Play sound when the grid square is touched, rather than when the part…
ultrafez Sep 24, 2014
c017649
Rename pattern to DotField
ultrafez Sep 26, 2014
7356aaa
Multicolour particle trails
ultrafez Sep 24, 2014
5094a29
Remove old commented-out code
ultrafez Sep 30, 2014
cc1bdb3
Detect collisions between particles and play a sound
ultrafez Sep 30, 2014
6a96d53
Optimisation
ultrafez Sep 30, 2014
7e03e98
Collisions happen on trail heads only
ultrafez Oct 1, 2014
f6c3403
Play a random sound on particle collision
ultrafez Oct 1, 2014
2fb2734
Bug fix - forgot to comment out some of the sound rate-limiting code
ultrafez Oct 1, 2014
48e4606
Trail head collisions will appear white and will leave a residual whi…
ultrafez Oct 1, 2014
45e5192
Added Nyan trail easter egg
ultrafez Oct 2, 2014
6c291d0
Make collision particles switchable on/off
ultrafez Oct 2, 2014
5a631f5
Don't store non-solid particles in the collision buckets.
ultrafez Oct 7, 2014
729822b
Cache out-of-bounds check per tick
ultrafez Oct 7, 2014
60abbe1
Adjust volume for collision sounds
ultrafez Oct 7, 2014
92c21c4
Increase volumes for collision sounds
Jan 11, 2015
f5cb31b
Python 3 compatibility
ultrafez Sep 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import signal
import cubehelper
import random
import logging

def load_patterns(cube, match):
patterns = {}
Expand Down Expand Up @@ -111,6 +112,13 @@ def run_pattern(cube, pattern):
def sigterm_handler(_signo, _stack_frame):
raise KeyboardInterrupt

# Set up additional logging to the console
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
consoleHandler = logging.StreamHandler()
consoleHandler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
logger.addHandler(consoleHandler)

ap = argparse.ArgumentParser(description="LED cube demo program")
ap.add_argument('-P', '--port', type=str,
help="Serial port")
Expand Down
Binary file added patterns/dotfield-data/Glock 32.01.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.02.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.03.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.04.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.05.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.06.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.07.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.08.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.09.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.10.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.11.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.12.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.13.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.14.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.15.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.16.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.17.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.18.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.19.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.20.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.21.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.22.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.23.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.24.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.25.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.26.wav
Binary file not shown.
Binary file added patterns/dotfield-data/Glock 32.27.wav
Binary file not shown.
Binary file added patterns/dotfield-data/harp-a.wav
Binary file not shown.
Loading