Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.46 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.46 KB

Arduino-3x3x3-Cube

This code is still a work in progress and needs refining. Furthermore, I will add a seperate header file for the functions to occupy. Still a work in progress.

The boards that this code supports the Arduino Uno, Arduino Nano, Arduino Mega, and the ATtiny84-20PU.

Board Type Row Assignment Column Assignment
Uno A1, A2, A3 2, 3, 4, 5, 6, 7, 8, 9, 10
Nano A1, A2, A3 2, 3, 4, 5, 6, 7, 8, 9, 10
Mega A1, A2, A3 2, 3, 4, 5, 6, 7, 8, 9, 10
ATtiny84 A0, A1, A2 2, 3, 4, 5, 6, 7, 8, 9, 10

Important for ATtiny users: Note that for the ATtiny, a shift bit register will be needed. We used the SN74HC595D for this.

The code initiates by assigning the pins in terms of a static constant which make it so that it can be defined using a loop. Columns are the vertical LEDs with rows being the layers of the cube.

The code includes the following functions:

  • Trail
  • Expanding Cube
  • Moving Layers
  • Rain Drops
  • Cross followed by vertical box
  • Vertical Spiral
  • Pulsating Octahedron
  • Perimeter Cube
  • Diagonal moving dot
  • Flashing
  • Randomly appearing dot
  • Growing tree
  • Triple Cartesian planes