Page 1 of 1

Pong

Posted: Thu Jun 26, 2014 2:41 am
by Micah
G'day all, great forum you've got here, figured I'd contribute :D
I bought a DMD a couple of days ago and thought I'd have a crack at Pong. It's a little bit hacked together but works pretty well. I also created a 3x5 pixel font to better fit on the display (all the other fonts are HUGE).

Anyway you can see it running here: http://youtu.be/g79xv5HomGE
let me know what you think :)

Cheers,

Re: Pong

Posted: Thu Jun 26, 2014 4:44 am
by angusgr
Wow, that's great! Thanks for sharing it.

Did you create the 3x5 pixel font from scratch? If you did, do you mind if we include it in the DMD library (or perhaps in DMD2?) You'll have to be OK with licensing it as GPL.


Angus

Re: Pong

Posted: Thu Jun 26, 2014 6:24 am
by Micah
Sure of course, I've attached a newer version that handles most characters.

It was only intended to represent digits originally so a couple other characters look a little odd, I'd need to change it to variable width to better handle those but it could be done.

Cheers,

Re: Pong

Posted: Wed Dec 06, 2017 4:31 am
by nickwest
Digging up an old thread here... I just wanted to add that you need to use pullup/pulldown resistors (or enable the built-in pullups in your code) so that you don't get spurious movements of the players' paddles.

Something like

Code: Select all

pinMode(P1_UP_PIN, INPUT_PULLUP);
pinMode(P2_UP_PIN, INPUT_PULLUP);
// and so forth for each controller pin
in your setup.