How to change LED Patterns using one button-11-LED!! 16-Pattern.LED-Arduino Project!!!
HTML-код
- Опубликовано: 27 авг 2024
- Creating videos is to improve my a bit of knowledge of Arduino. Are there any mistakes or doubts you can comment to correct! Hope you like it and hope it is useful for some need!
Code here: docs.google.co...
Thank u this is what iam looking patterns ❤
The code can be shortened by For Loops.
Hi, quick question: Do you have a wiring diagram and which parts are needed ?
Really well done!!!
crazy code. you could use loop.
Thanks for sharing such an Awesome project.
Can you please add one more feature to this
by storing the different selected sequence patterns to Arduino eeprom memory by same push button to be automatically displayed on power up.
Awaiting your earliest response. Thanks & kind regards.
Nice video. can you make it run on ATTINY84 chip?
can save mode?
The code is incorrect
There's no "how" in this video whatsoever.
button does not work
lo so fare anche io
i came here for code and i see bullshit
I am getting these messages, can you help?
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino: In function 'void loop()':
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:37:5: error: 'pattern1' was not declared in this scope
pattern1();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:37:5: note: suggested alternative: 'extern'
pattern1();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:41:5: error: 'pattern2' was not declared in this scope
pattern2();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:41:5: note: suggested alternative: 'atan2'
pattern2();
^~~~~~~~
atan2
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:45:5: error: 'pattern3' was not declared in this scope
pattern3();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:45:5: note: suggested alternative: 'extern'
pattern3();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:48:5: error: 'pattern4' was not declared in this scope
pattern4();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:48:5: note: suggested alternative: 'extern'
pattern4();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:52:5: error: 'pattern5' was not declared in this scope
pattern5();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:52:5: note: suggested alternative: 'extern'
pattern5();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:56:5: error: 'pattern6' was not declared in this scope
pattern6();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:56:5: note: suggested alternative: 'extern'
pattern6();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:60:5: error: 'pattern7' was not declared in this scope
pattern7();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:60:5: note: suggested alternative: 'extern'
pattern7();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:64:5: error: 'pattern8' was not declared in this scope
pattern8();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:64:5: note: suggested alternative: 'extern'
pattern8();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:68:5: error: 'pattern9' was not declared in this scope
pattern9();
^~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:68:5: note: suggested alternative: 'extern'
pattern9();
^~~~~~~~
extern
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:72:5: error: 'pattern10' was not declared in this scope
pattern10();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:76:5: error: 'pattern11' was not declared in this scope
pattern11();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:80:5: error: 'pattern12' was not declared in this scope
pattern12();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:84:5: error: 'pattern13' was not declared in this scope
pattern13();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:88:5: error: 'pattern14' was not declared in this scope
pattern14();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:92:5: error: 'pattern15' was not declared in this scope
pattern15();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:96:5: error: 'pattern16' was not declared in this scope
pattern16();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:100:5: error: 'pattern17' was not declared in this scope
pattern17();
^~~~~~~~~
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:105:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:116:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:132:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:150:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:218:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:232:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:246:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:399:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:496:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:529:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:592:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:629:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:691:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:800:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:991:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:1193:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:1222:1: error: a function-definition is not allowed here before '{' token
{
^
E:\Documents\PERSONAL\Bens_Arduino\projects\11Leds_chasers_11effects_Button_Controlled\11Leds_chasers_11effects_Button_Controlled.ino:1234:1: error: expected '}' at end of input
}
^
exit status 1
Compilation error: 'pattern1' was not declared in this scope