Cube Code - Numerous Patterns

The "Cube4" is a 4x4x4 RGB LED cube with an Arduino Leonardo compatible onboard controller. [Product page]
Post Reply
neographophobic
Posts: 9
Joined: Mon Sep 28, 2015 6:36 am

Cube Code - Numerous Patterns

Post by neographophobic » Mon Mar 07, 2016 10:00 am

I’ve published to Github (https://github.com/neographophobic/Cube4-Sketches) a series of sketches I have created for various different patterns.

A number of the patterns have non-blocking versions, which are designed to run using state machines and millis() instead of delay(). This is particularly handy if you are trying to interact with the cube while one of these patterns are running. These non-blocking versions have also been created as classes, which make it easier to include them in other sketches.

Some of the patterns require an additional library to be installed that I’ve created with shared functions that I’ve found to be useful when interacting with the cube. The library is Cub4_ARUtils and can be found at https://github.com/neographophobic/Cube4_ARUtils.

The Github page contains all of the steps needed to download and install the library and sketches, a description of each of the patterns, and a link to a Youtube video of it in action. It also lists whether a sketch requires the Cube4_ARUtils library or not.

The patterns included are:-
  • Blank
  • ColourPulse
  • Cube Edge
  • Expanding
  • Face Expanding
  • Face Peel
  • Face Sweep
  • Flashing Cubes
  • Letters (unchanged from my previous post)
  • Looping Boxes
  • Plane Move
  • Random Fill
  • Random Pull
  • Roaming Cubes
  • Rotate Plane
  • Snake
  • Spiral
  • Splat
  • Sweep
  • Wave
  • ZigZag
Additionally I’ve been playing with making some existing community provided or example sketches non-blocking. The sketches that I’ve made non-blocking are available in the 3rd Party folder, and include:-
  • Colour Fader
  • Cubes
  • DoubleCube
  • Emergency Flashing
  • Heartbeat
  • LaserShow
  • RainStorm
  • Random Colours
  • Test Pattern
I hope somebody finds these to be useful. It’s the first time I’ve played with using state machines and millis() instead of delay(), so if anybody has any suggestions on how to improve my approach or any of the sketches it would be appreciated.

smokinjoe52
Posts: 1
Joined: Mon Mar 14, 2016 12:12 am

Re: Cube Code - Numerous Patterns

Post by smokinjoe52 » Mon Mar 14, 2016 12:20 am

This is great stuff. Unfortunately, I completed a similar cube from Seeedtronics a couple months ago, and have not been able to find ANY sketches for it. (other than their examples) It uses the Arduino compatible Rainbowduino. I am assuming your sketches would not work. Any idea if that is true?

Just wondering if you are planning to combine these sketches into one super sketch that could loop as the main cube sketch. My cube has an acrylic case and it is a PITA to take apart and reload. I would like to have something that combines most of your sketches and run it forever.

Any comments about my chances using your code in my cube would be appreciated.

Thanks,

Joe

neographophobic
Posts: 9
Joined: Mon Sep 28, 2015 6:36 am

Re: Cube Code - Numerous Patterns

Post by neographophobic » Sun Mar 20, 2016 11:57 pm

The code I've posted is written specifically for the Freetronics cube. That said I've had a look at the Rainbowduino doco, and while my code won't work directly, with some work I'm sure you could adapt some of the sketches to work. For example where I use cube.set(X, Y, Z, COLOUR), the Rainbowduino version is Rb.setPixelZXY(Z,X,Y, COLOUR), however the Rainbowduino doesn't appear to provide items like line, box for a cube.

As for combining the items into a larger demo reel, I don't plan on doing that, but there is nothing stopping that from happening (pending you can fit it in the available memory). They sketches I've provided should be easy to copy and paste the relevant bits together to make a combined sketch.

Sorry I can't be of more help.

clibin009
Posts: 563
Joined: Mon Oct 23, 2017 2:57 am

20180203caihuali

Post by clibin009 » Sat Feb 03, 2018 2:12 am

oakley sunglasses
kate spade outlet
michael kors outlet online
true religion jeans
air huarache
michael kors outlet
true religion jeans
polo outlet
uggs outlet
uggs outlet
uggs outlet
longchamp handbags
polo ralph lauren
moncler outlet
basketball shoes
nike store uk
nike trainers
oakley sunglasses
ysl outlet
michael kors outlet
chrome hearts outlet
cheap football shirts
oakley sunglasses
ray ban sunglasses
canada goose outlet
ralph lauren polo shirts
cheap jordans
canada goose jackets
polo ralph lauren
true religion jeans
coach factory outlet
longchamp solde
air jordan 4
oakley sunglasses
cartier outlet
michael kors
jordan shoes
moncler outlet
nike air max 90
ugg outlet
chrome hearts
christian louboutin outlet
coach outlet
coach outlet
true religion jeans
uggs outlet
polo ralph lauren
pandora jewelry
pandora charms
coach outlet
longchamp handbags
coach outlet
michael kors outlet
coach factory outlet
canada goose outlet
ferragamo outlet
puma outlet
christian louboutin outlet
polo ralph lauren
ugg boots clearance
adidas wings
cheap nfl jerseys
ferragamo outlet
longchamp pas cher
true religion jeans
ray ban sunglasses
canada goose outlet
lacoste soldes
coach outlet store online
ray ban sunglasses
polo ralph lauren
kate spade outlet
true religion jeans
canada goose outlet
vans shoes
true religion outlet
polo outlet
adidas uk
oakley sunglasses wholesale
louboutin shoes
tory burch outlet
canada goose jackets
canada goose outlet
oakley sunglasses
longchamp bags
oakley sunglasses
polo outlet
ray ban sunglasses
ugg outlet
ray ban sunglasses
coach factory outlet
oakley sunglasses wholesale
lacoste polo shirts
canada goose jackets
cheap snapbacks
ugg outlets
hermes belt
coach outlet
uggs outlet
mulberry handbags
polo outlet
polo outlet
ugg cyber monday
ugg boots
rayban sunglasses
oakley sunglasses
fitflops shoes
polo ralph lauren
ugg boots clearance
canada goose jackets
nike air max 2015
air max 90
air max 90
coach outlet
ugg boots
pandora charms
ugg outlet
reebok trainers
fitflops sale clearance
oakley sunglasses
fitflops sale clearance
new balance pas cher
michael kors outlet
ugg outlet
jordan shoes
michael kors outlet
michael kors outlet
nfl jersey wholesale
supreme clothing
polo ralph lauren
michael kors outlet
jordan shoes
pandora jewelry
pandora charms
nike shoes
true religion jeans
canada goose jackets
tory burch outlet
air jordan pas cher
oakley sunglasses
kate spade outlet
fred perry polo shirts
christian louboutin outlet
michael kors handbags
michael kors handbags
christian louboutin outlet
marc jacobs outlet
oakley sunglasses
true religion jeans
mont blanc pens
ralph lauren polo
coach factory outlet
coach outlet
polo ralph lauren
polo outlet
oakley sunglasses
coach outlet
ray ban sunglasses
polo outlet
michael kors outlet
michael kors outlet
nike trainers
uggs
ugg outlet
fitflops
ugg boots
coach factory outlet
ugg boots
ferragamo shoes
ray ban sunglasses
ugg outlet
michael kors outlet online
oakley sunglasses
ugg outlet
michael kors outlet
polo outlet
tory burch outlet
michael kors outlet
michael kors outlet
chicago blackhawks jerseys
kate spade outlet
prada sunglasses
ugg boots
adidas nmd
ray ban sunglasses
pandora outlet
ferragamo outlet
barbour outlet
polo shirts
christian louboutin online
fitflops sale clearance
coach outlet online
longchamp handbags
nike shoes
canada goose outlet
christian louboutin outlet
michael kors
pandora outlet
mbt shoes
nike factory outlet
ugg outlet
jordan shoes
ray ban sunglasses
pandora outlet
yeezy boost 350
longchamp outlet
michael kors outlet online
canada goose jackets
fitflops sale
oakley sunglasses
kate spade outlet
canada goose jackets
ralph lauren polo
cheap nfl jerseys
adidas nmd
asics pas cher
pandora charms
montblanc pens
oakley sunglasses
ugg outlet
air max 90
coach outlet
kobe bryant shoes
ugg boots clearance
canada goose jackets
canada goose jackets
polo ralph lauren
ugg outlet
ed hardy clothing
christian louboutin outlet
lebron james shoes
coach outlet
pandora outlet
ugg outlet
nike shoes
canada goose jackets
cazal sunglasses
hermes outlet
canada goose outlet
coach outlet
coach outlet
coach outlet
coach outlet
nfl jerseys
michael kors outlet
true religion jeans
tory burch outlet
mcm outlet
polo ralph lauren
canada goose outlet
jordan shoes
uggs outlet
nike blazer pas cher
bottega veneta outlet
canada goose outlet
burberry outlet
kobe 9
ray ban sunglasses
christian louboutin outlet
ralph lauren outlet
christian louboutin shoes
polo ralph lauren
jordan shoes
canada goose outlet
michael kors outlet
nike outlet
michael kors bags
swarovski outlet
coach outlet
michael kors
rayban sunglasses
fitflops
mulberry handbags
canada goose coats
hermes birkin
longchamp handbags
michael kors outlet
swarovski outlet
coach outlet online
tory burch outlet
longchamp outlet
polo ralph lauren
coach factory outlet
pandora outlet
coach factory outlet
michael kors handbags
true religion outlet
adidas outlet store
true religion outlet
ugg outlet
michael kors outlet
supreme clothing
polo ralph lauren
cheap snapbacks
longchamp solde
cheap jordans
ugg boots clearance
kobe shoes
air jordan pas cher
oakley sunglasses
asics pas cher
true religion uk
coach outlet online
michael kors outlet
ugg outlet
canada goose outlet
true religion jeans
coach handbags
nike outlet
fitflops outlet
ugg outlet
pandora charms
burberry outlet
canada goose parka
canada goose jackets
swarovski outlet
canada goose jackets
nike trainers
birkenstock outlet
michael kors outlet
michael kors handbags
mont blanc pens
michael kors outlet
prada shoes
mont blanc pens
prada outlet
christian louboutin shoes
nhl jerseys
oakley sunglasses
ugg outlet
longchamp pliage
lakers jerseys
air max trainers
ralph lauren polo shirts
polo ralph lauren
cheap jerseys
kate spade outlet
giuseppe zanotti outlet
nfl jerseys
michael kors outlet
polo ralph lauren
canada goose outlet
michael kors handbags
coach outlet online
michael kors handbags
christian louboutin outlet
nike roshe
canada goose jackets
ferragamo outlet
canada goose outlet
soccer jerseys
supreme clothing
polo outlet
mulberry outlet
ray ban sunglasses
nfl jerseys wholesale
swarovski crystal
thomas sabo
fitflops shoes
canada goose outlet
converse shoes
pandora outlet
pandora outlet
michael kors outlet
oakley sunglasses
air max 1
salomon shoes
mont blanc pens
coach outlet online
burberry outlet
nfl jerseys
michael kors outlet
ralph lauren pas cher
air max uk
soccer jerseys
longchamp outlet
ugg outlet
nike store
coach outlet
cheap nhl jerseys
polo ralph lauren
nike pas cher
ray ban sunglasses
michael kors
polo ralph lauren
mulberry bags
ugg outlet
cheap mlb jerseys
true religion jeans
christian louboutin outlet
mulberry handbags
michael kors outlet
ralph lauren polo
cleveland cavaliers jersey
ferragamo shoes
jordan shoes
air max 90
ugg boots
coach outlet
prada handbags
christian louboutin outlet
true religion outlet
canada goose jackets
ray ban sunglasses
michael kors outlet
cheap jerseys
kate spade outlet
canada goose jackets
uggs outlet
coach handbags
links of london
oakley sunglasses
oakley sunglasses
tory burch outlet
oakley sunglasses
coach outlet
moncler jackets
cheap mlb jerseys
swarovski outlet
oakley sunglasses
polo ralph lauren
oakley sunglasses
michael kors outlet
ugg outlet
pandora charms
adidas trainers
cheap jordans
futbol baratas
mulberry handbags
nfl jerseys
ray ban sunglasses
kate spade outlet
uggs outlet
nike pas cher
nike air max
mulberry outlet
ray ban sunglasses
denver broncos jerseys
nike shoes
canada goose outlet
tory burch outlet
nba jerseys
ray ban sunglasses
dansko shoes
pandora charms sale clearance
canada goose outlet
canada goose outlet
nike free 5
ugg boots clearance
coach outlet
herve leger outlet
ralph lauren polo shirts
reebok outlet store
michael kors wallets
mulberry sale
asics shoes
burberry outlet
new balance shoes
coach outlet canada
birkenstock sandals
mulberry bags
coach outlet online
christian louboutin shoes
coach outlet online
hermes outlet
michael kors outlet
michael kors outlet
nike roshe one
swarovski crystal
coach outlet
ugg outlet
ray ban sunglasses
moncler outlet
cheap nfl jerseys
air huarache
yeezy boost
ecco shoes
nike foamposite
cheap jordans
canada goose outlet
football shirts
ray-ban sunglasses
tory burch outlet
coach outlet
oakley sunglasses
ray ban sunglasses
coach outlet online
supreme clothing
nike shoes
kevin durant shoes
pandora charms
moncler jackets
ferragamo outlet
canada goose outlet
pandora outlet
tods outlet
nike air force 1
michael kors uk
nike shoes
new balance pas cher
ugg boots
supra shoes
christian louboutin shoes
ugg outlet
ray ban sunglasses
canada goose outlet
mac makeup
coach outlet online
coach canada
ugg black friday
nba jerseys
denver broncos jerseys
michael kors outlet
michael kors outlet
ray bans
valentino outlet
soccer shoes
20180203caihuali

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests