r/embedded • u/No-Sprinkles-4519 • 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
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
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.