GitXplorerGitXplorer
e

pong1d

public
7 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
2f819dcbb17d0374459a5f1f88e5e5b03db8e222

Better score display & shorter games

eencukou committed 10 years ago
Unverified
aa04e9a0875352d560fb1d72e78abadc107cf471

Patch to the driver was merged! Update README

eencukou committed 10 years ago
Unverified
99710d91790c52180c2ea135be1092660cd7b59e

Initial commit

eencukou committed 10 years ago

README

The README file for this repository.

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.

.. _youtube video: https://www.youtube.com/watch?v=fwyFTVJoppA

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.

.. _micropython-ws2812: https://github.com/JanBednarik/micropython-ws2812

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.