Code Monkey home page Code Monkey logo

cube-ui's Introduction

Arduino LED Cube

An Arduino class and example sketch to control an LED cube.

Hardware

This software accompanies an Instructable for building an LED Cube. Read through it before proceeding.

Install

Download the library and unzip LedCube your sketchbook/libraries folder. If the libraries folder doesn't exist already then create it first. When set up correctly you should find an example in the Arduino software under File > Examples > LedCube > ledcube.

Background

I found a few code examples on the web for controlling an LED cube but they all required large arrays of binary or hex data to control the LEDs. I figured there must be a more user friendly way so I set out to write my own software.

I decided to make the software mirror the hardware. That meant addressing each LED by column and level rather than use raw port data or the traditional x, y, z. I also decided to start with basic functions, like turning a single light on or off, or lighting a single column, and build up from there.

There are two features which are useful for more interesting effects. One is a buffer which allows the basic functions to build up more complex patterns. The other is a sequence function which lights an array of LEDs one at a time, or all at once.

More recently I've introduced a web based UI to build up new animations in case code isn't your strong suit.

License

MIT License. See the accompanying LICENSE file for terms.

The UI is licensed under CC BY-SA. See it's readme for more info.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.