Hello,
i want to write a program that controls my led strip via the fast.led library with animations. But at the same time the program has to look for incomming commands via bluetooth. How is it possible to make a script that does two things at once?
thanks in advance
Hyperno:
How is it possible to make a script that does two things at once?
There are several examples of this in the plyaground, the sample sketches in the IDE, and elsewhere.
In general, you write the functions that do your things that you want to do without using delay(), instead writing them so that they do a small chunk of work and then return. Your main loop() function calls each of those functions each time it executes.
PaulMurrayCbr:
There are several examples of this in the plyaground, the sample sketches in the IDE, and elsewhere.
In general, you write the functions that do your things that you want to do without using delay(), instead writing them so that they do a small chunk of work and then return. Your main loop() function calls each of those functions each time it executes.
OW! you're right! I googled what you said and found an example on the arduino site in which they wanted to blink an led without the use of delay(); .Here is the link: https://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
Actually, it is kind of easy. Oh well, im still a newbie to arduino.
Just wanna let you know, I got it working!!!! Thanks a lot man! Cheers