Skip to content
/ pong1d Public

1D Pong for the Micropython Pyboard and a 144-LED WS2812 strip

Notifications You must be signed in to change notification settings

encukou/pong1d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

1D Pong for the Micropython Pyboard and a 144-LED WS2812 strip.

Push the button when the "ball" is in your goal area. Don't let it go past the end of the strip, or you lose a point! When all of your 10 points are gone, game over.

When you push the button close to the ent of the strip, it will go faster, making it harder for your opponent to react.

See the youtube video for a demo.

Software

Requires the micropython-ws2812 library. Copy ws2812.py from there and main.py from here to your pyboard.

If you have more or fewer than 144 LEDs in your strip, adjust SIZE at the top of main.py.

Hardware

Connect the LED strip to VIN (+), GND (-), and X8 (Data). Connect a pushbutton between VIN and X4.

Operation

Use the Pyboard's onboard switch to control one player's side; the other player should use the pushbutton.

About

1D Pong for the Micropython Pyboard and a 144-LED WS2812 strip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages