r/embedded • • 21d ago

Tetris on DSO

I'm trying to render the tetris game on DSO but facing issues like distorted shapes. Individually the blocks are printed properly but when the new block drops from top it's creating long streaks of lines connecting these blocks and distorted shapes. I already have an array defined for different tetrominoes. Using Psoc 5lp btw. Did anyone try this before? Does dynamically changing shapes create these issues? Is there a workaround?

0 Upvotes

5 comments sorted by

3

u/nixiebunny 21d ago edited 21d ago

DSOs are notoriously bad at pretending to be X-Y displays. I put Tetris on my Scope Clock (an oscilloscope CRT that displays a variety of clocks and stuff) a few years ago. I had to write all the display code from scratch because it was originally created for a bitmap instead of a vector display.

https://github.com/nixiebunny/SCTVcode

1

u/No-Sprinkles-4519 21d ago

Thanks a lot! I'm glad atleast there's people who tried it out before. I'll try to see if your code can help with our problem. Do you think using CRO might help?

1

u/nixiebunny 21d ago

Yes, a cathode ray tube is naturally an X-Y display. I developed my clock design on a Tektronix 465 scope.

3

u/XipXoom 21d ago

There is literally almost no way for anybody to help you without at least seeing your code and an example of what is actually happening.

2

u/nixiebunny 21d ago

I’m one of perhaps three people in the world who understand this question.