Giter Club home page Giter Club logo

galacticunicorn's Introduction

GalacticUnicorn

Modified code for my Pimoroni Galactic Unicorn LED Panel

I heavily modified the main.py module, and updated the remaining modules that come with the default install so that they exit and go back to main instead of reset the device. The main.py no longer resets the device and has a try-except block to catch any errors and display an error message before halting.

This change was made to allow for selecting through the buttons with state and to be sure any bad code did not brick the display. It's not perfect, but it should catch most things.

Also added a function, msg.py to display messages based on an internal array of strings to display.

Lastly, button changes.

Button A : displays the messages in the selected array. There is an if-elfi-else structure to fill out the array for messages and a variable Panel which can be used to select which block of messages to display. The panel variable is an integer, unrecognized numbers simply display's test messages. This change is in case you have multiple displays that you may want to have multiple, separate, messages on. Keep clicking the button to cycle through the messages.

Button B : compacts all the effects (fire, retroprompt, supercomputer, rainbow) to this button, while adding some new effects to fire and supercomputer. Keep clicking the button to cycle through the effects.

Button C : shows holiday messages. Keep clicking the button to cycle through the messages.

Button D : Halts the Display (useful for when some code goes wrong on the microcontroller).

Sleep, lux+, lux- and reset work as normal.

galacticunicorn's People

Contributors

ejohnfel avatar

Stargazers

Allen Andrew Stewart avatar

Watchers

 avatar  avatar

galacticunicorn's Issues

Randomize Effect Mode

Alter main loop (with button press), to randomize the effects after a random period of time... or set period of time... figure it out. :P

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.