Giter Site home page Giter Site logo

microbit_matrix_drips's Introduction

Make an led screen like in The Matrix

Project Goal: Matrix drip screen

Create a display that is reminescent of the computer monitors in the movie "The Matrix". The microbit's leds allow for dimming, using this one can create a "drip" effect across the leds.

The goal of the project was to create one single "drip" as an object that can easily be used in future code. I tested the code using a while loop, works like a charm : ). Can certainly be improved upon to look more like what is seen in the matrix.

Personal Challenge: Use Class Structure

I have historically avoided classes in favor of function-oriented code, both because functional code was easier to understand and I failed to see the benefits of a class at the time. I now understand the value of classes and want to start using them frequently (when appropriate).

In terms of reusability, classes are awesome. Sure, you could copy and paste code or write neat wrapper functions to control the flow of your program, but when it comes time to implement your code in a new environment, you have to hunt through your code for relevant functions! And on top of that (at least if you're working in python), you need to be careful about where you place your functions within your new script.

With classes, everything is nicely bottled up, and if you write a class well you'll only need minimal(hopefully no) restructuring when you go to implement your class in a new script.

For more information on classes in python, see the docs https://docs.python.org/3/tutorial/classes.html

microbit_matrix_drips's People

Contributors

mabiesen avatar

Watchers

 avatar

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.