Code Monkey home page Code Monkey logo

pong1d's Introduction

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.

pong1d's People

Contributors

encukou avatar

Stargazers

Benjamin Féron avatar  avatar  avatar  avatar Michal Latay avatar Andrej avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

latay maikel999

pong1d's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.