yveaux / ledpattern Goto Github PK
View Code? Open in Web Editor NEWArduino library to run set-and-forget LED blink patterns
License: GNU General Public License v3.0
Arduino library to run set-and-forget LED blink patterns
License: GNU General Public License v3.0
First of all, thanks a lot @Yveaux for your library! Is being very helpful for my last project; and other people should know for it.
I am using the lib for a big_start_arcade_ligthing_button for a computer TV station based on Arduino + openFrameworks app connected through usb serial com.
The thing is that sometimes I am stuck with some errors that I can't debug fine (I don't know how).
I use Visual Micro as Arduino IDE in MS Visual Studio (Arduino Mega & Uno + 1 NeoPixel RGB led).
I can't figure out why sometimes the Arduino hangs and stops working and it falls freezed.
When modifying the led patterns (I think...), sometimes the code backs to work fine. Also just disabling the serial1 (second aux port used to debug) makes the code stop working (?)... I started with the FastLed examples.
I suspect that maybe is related to some incompatibility (timers?, interrupts?, used pins?, to debug on serial on a listener function?...) with the others libraries I am using. But I don't know what I have to check inside the other libs (and also into LedPattern) to disable/debug the problems.
The other libs I am using are this ones:
https://github.com/bakercp/PacketSerial
https://github.com/mathertel/OneButton
https://github.com/TinkerKit/DmxMaster
https://github.com/pfeerick/elapsedMillis
Any idea of how/where to start check around?
Thanks again! I'll post here my progress if I see something helpful...
This library looks awesome! Alas, the examples do not compile on Arduino IDE 1.8.5 for Arduino Uno. For example, in "Mono_pattern.ino", the error given is:
Mono_pattern:48: error: cannot declare variable 'pattern' to be of abstract type 'LedPattern_Mono'
static LedPattern_Mono pattern(LED_PIN);
^
In file included from /Users/usr/Documents/Arduino/libraries/LedPattern/examples/Mono_pattern/Mono_pattern.ino:1:0:
/Users/usr/Documents/Arduino/libraries/LedPattern/LedPattern_Mono.h:6:7: note: because the following virtual functions are pure within 'LedPattern_Mono':
class LedPattern_Mono : public LedPattern
^
In file included from /Users/usr/Documents/Arduino/libraries/LedPattern/LedPattern_Mono.h:4:0,
from /Users/usr/Documents/Arduino/libraries/LedPattern/examples/Mono_pattern/Mono_pattern.ino:1:
/Users/usr/Documents/Arduino/libraries/LedPattern/LedPattern.h:118:22: note: virtual void LedPattern::ledFadeStop()
virtual void ledFadeStop(void) = 0;
^
exit status 1
cannot declare variable 'pattern' to be of abstract type 'LedPattern_Mono'
Any idea what could be wrong in here?
Could not find this library via the Arduino Library Manager. Is there a specific keyword to search with ? Or does the library have to be added manually ?
From the description, this library seems to be exactly what I need, as I need to simultaneously run various blink patterns on multiple LEDs (on/off, no fade), and that operates asynchronously.
Where am I supposed to find this library? I cant seem to find it anywhere.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.