Giter VIP home page Giter VIP logo

arduino-ala's Introduction

Arduino-ALA

Extensions to ALA and FastGPIO libraries.

This folder contains all the files relating to my extended ALA library development.

##ExtAlaLedRgb

The extended library is called ExtAlaLedRgb.cpp and it's corresponding header.

I have added the ability to drive APA102 LED strips.

Using this extended version enables you to define sections of a single LED strip and run different sequences of animation on each section. I have posted a video on YouTube showing an APA102 led strip running two different animation sequences on different sections of the same strip. (https://www.youtube.com/watch?v=hsvYEGXiAFw)

##ExtFastGPIO

Using a 144 APA102 Led strip the RAM required is too much for a 2K device so I used a MEGA2560. In order to drive the APA102 as fast as possible I modified FastGPIO (renamed to ExtFastGPIO to add the pin definitions for the 2560.)

On the 2560 ExtFastGPIO Works ok with the exception of pins 42-49 (PORT L) and comms pins 14-15 (PORT J) and pins 16-17 (PORT H). If you try to use those pins the Arduino compiler throws an error "impossible constraint in 'asm'". There are plenty of other pins on the 2560 which can be used.

##Colours.h

I have included a header which defines the standard web colours as listed at http://www.w3schools.com/

arduino-ala's People

Contributors

bnnorman avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arduino-ala's Issues

problem using library properly

Hi I'm trying to use the extended ALA library you created to try and drive two strips separately. but I can't seem to get it working. Heres an example of the code I'm starting with (mostly based off the example on the ALA page).
I'm not very familiar with C++or coding at all, but could you maybe point out what I'm doing wrong or how I might go about fixing it, thank you.

#include "ExtAlaLedRgb.h"

ExtAlaLedRgb rgbStrip1;
ExtAlaLedRgb rgbStrip2;

void setup()
{
  rgbStrip1.initWS2812(1, 8);
  rgbStrip2.initWS2812(24, 6);
  
  rgbStrip1.setAnimation(ALA_FADECOLORSLOOP, 5000, alaPalRgb);
  rgbStrip2.setAnimation(ALA_FADECOLORSLOOP, 10000, alaPalRgb);
}

void loop()
{
  rgbStrip1.runAnimation();
  rgbStrip2.runAnimation();
}

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.