Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/encukou/pong1d
1D Pong for the Micropython Pyboard and a 144-LED WS2812 strip
https://github.com/encukou/pong1d
Last synced: 26 days ago
JSON representation
1D Pong for the Micropython Pyboard and a 144-LED WS2812 strip
- Host: GitHub
- URL: https://github.com/encukou/pong1d
- Owner: encukou
- Created: 2014-12-14T18:49:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-14T21:34:36.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T13:19:26.837Z (over 1 year ago)
- Language: Python
- Size: 113 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
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.