LX' Arduino Tetris

A Tetris game for Arduino Uno and a 32x32 LED matrix panel.

Apr 3, 2018

29805 views

48 respects

Components and supplies

1

Arduino UNO

1

Breadboard (generic)

1

32x32 RGB LED Matrix Panel

4

Pushbutton switch 12mm

1

Resistor 4.75k ohm

2

Resistor 10k ohm

1

Resistor 221 ohm

Apps and platforms

1

Arduino IDE

Project description

Code

Github

LX' Arduino Tetris

Github

LX' Arduino Tetris

Downloadable files

Wiring

Wiring

Comments

Only logged in users can leave comments

Waleed0810

2 years ago

None of the code works. so many issues with it.

massacre751

2 years ago

https://create.arduino.cc/projecthub/massacre751/communication-with-ir-s-between-2-arduinos-fsm-599077 Respect

Anonymous user

2 years ago

excuse,i cant find the file RGBmatrixPanel.h is there any solution ? ty

Anonymous user

2 years ago

Very cool project

Anonymous user

2 years ago

Sorting code Which one before and after? _a_LXLedPanelNumbers.ino _c_collisions.ino _k_tetrominoes.ino _n_next.ino _r_keys.ino _s_reset.ino _tetris.ino _y_setup.ino _z_loop.ino

RomanSixty

2 years ago

Arduino IDE uses the ino file with the project's name as the base file (tetris.ino in this case) and all others sorted alphabetically.

Anonymous user

2 years ago

C:\\Users\\erik\\Documents\\Arduino\ etris\\a_LXLedPanelNumbers.ino:20:129: warning: character constant too long for its type void LXLedPanelNumbers_number ( const byte number = 0, const byte offset_x = 0, const byte offset_y = 0, const uint16_t color = 'YELLOW' ) { ^ C:\\Users\\erik\\Documents\\Arduino\ etris\\a_LXLedPanelNumbers.ino:34:120: warning: character constant too long for its type void LXLedPanelNumbers_write ( const unsigned long number = 0, const byte where = SCORE_POINTS, const uint16_t color = 'YELLOW' ) { I'm getting this for an error message. Do you have an idea of what happened? ^

Anonymous user

2 years ago

Can you use a 4mm pitch instead of a 6mm pitch?

RomanSixty

2 years ago

I don't know, but I guess those panels are somewhat standardized.

Unsigned_Arduino

2 years ago

Nice. Maybe you can try using a tft. I think the pieces are kind of hard to see. But anyway, I really like it. Just wondering, where did you get the 32 * 32 LED matrix? Never saw a matrix over 9 * 18 pixels.

Unsigned_Arduino

2 years ago

I mean, how much is it? <I am stupid>

RomanSixty

2 years ago

I got it for some 50 Euros from a trader on Amazon. You could also get it directly from the Adafruit store if they acquire another batch: https://www.adafruit.com/product/1484

Anonymous user

2 years ago

you can get one cheap on aliexpress. https://nl.aliexpress.com/item/P6-outdoor-module-192X192mm-32X32-pixels-1-8-scan-SMD-RGB-full-color-p6-led-module/32805643837.html?spm=a2g0z.search0104.3.29.473e3116Q4Yekv&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10068_5723115_5722815_10342_10325_10343_10546_10340_5722915_10548_10341_5722615_10696_10084_10083_10618_10304_10307_10820_5722715_10059_100031_10103_10624_10623_10622_5722515_10621_10620,searchweb201603_55,ppcSwitch_5&algo_expid=26fe0ddf-33fd-4866-8a11-ebd490480b26-4&algo_pvid=26fe0ddf-33fd-4866-8a11-ebd490480b26&priceBeautifyAB=0

Anonymous user

2 years ago

request for All code is running in arduino. .......Thank

Anonymous user

6 years ago

excuse,i cant find the file RGBmatrixPanel.h is there any solution ? ty

qwertist

6 years ago

C:\\Users\\erik\\Documents\\Arduino\ etris\\a_LXLedPanelNumbers.ino:20:129: warning: character constant too long for its type void LXLedPanelNumbers_number ( const byte number = 0, const byte offset_x = 0, const byte offset_y = 0, const uint16_t color = 'YELLOW' ) { ^ C:\\Users\\erik\\Documents\\Arduino\ etris\\a_LXLedPanelNumbers.ino:34:120: warning: character constant too long for its type void LXLedPanelNumbers_write ( const unsigned long number = 0, const byte where = SCORE_POINTS, const uint16_t color = 'YELLOW' ) { I'm getting this for an error message. Do you have an idea of what happened? ^

qwertist

6 years ago

Can you use a 4mm pitch instead of a 6mm pitch?

RomanSixty

2 years ago

I don't know, but I guess those panels are somewhat standardized.

Waleed0810

6 years ago

None of the code works. so many issues with it.

massacre751

7 years ago

https://create.arduino.cc/projecthub/massacre751/communication-with-ir-s-between-2-arduinos-fsm-599077 Respect

Anonymous user

7 years ago

request for All code is running in arduino. .......Thank

Sonthaya12

7 years ago

Sorting code Which one before and after? _a_LXLedPanelNumbers.ino _c_collisions.ino _k_tetrominoes.ino _n_next.ino _r_keys.ino _s_reset.ino _tetris.ino _y_setup.ino _z_loop.ino

RomanSixty

2 years ago

Arduino IDE uses the ino file with the project's name as the base file (tetris.ino in this case) and all others sorted alphabetically.

WrichikBasu

7 years ago

Could you please post a zoomed in picture of the LED Matrix panel (the place where you're attaching the wires)?

WrichikBasu

2 years ago

That is helpful. Thanks.

RomanSixty

2 years ago

You mean how I connected the panel to the Arduino? I don't think a photo would help much since it's 16 wires in a very small space on a breadboard. That's bound to be confusing... But the Adafruit documentation (https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/connecting-with-jumper-wires) has a step-by-step guide on how to put it together.

Unsigned_Arduino

7 years ago

Nice. Maybe you can try using a tft. I think the pieces are kind of hard to see. But anyway, I really like it. Just wondering, where did you get the 32 * 32 LED matrix? Never saw a matrix over 9 * 18 pixels.

Unsigned_Arduino

2 years ago

I mean, how much is it? <I am stupid>

RomanSixty

2 years ago

I got it for some 50 Euros from a trader on Amazon. You could also get it directly from the Adafruit store if they acquire another batch: https://www.adafruit.com/product/1484

hunter303

2 years ago

you can get one cheap on aliexpress. https://nl.aliexpress.com/item/P6-outdoor-module-192X192mm-32X32-pixels-1-8-scan-SMD-RGB-full-color-p6-led-module/32805643837.html?spm=a2g0z.search0104.3.29.473e3116Q4Yekv&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10068_5723115_5722815_10342_10325_10343_10546_10340_5722915_10548_10341_5722615_10696_10084_10083_10618_10304_10307_10820_5722715_10059_100031_10103_10624_10623_10622_5722515_10621_10620,searchweb201603_55,ppcSwitch_5&algo_expid=26fe0ddf-33fd-4866-8a11-ebd490480b26-4&algo_pvid=26fe0ddf-33fd-4866-8a11-ebd490480b26&priceBeautifyAB=0

hunter303

7 years ago

Very cool project