Code Monkey home page Code Monkey logo

klipper-led's Introduction

klipper-led

Wiring Instuctions

Wire data pin to GPIO 18, PCM_CLK pin on the raspberry PI. Make sure you share a common ground to the LEDs or they wont properly light. LEDs data in/out must be wired in series.

If you have a large amount of LEDs you should wire 5V seperately.

Reference this - https://learn.adafruit.com/neopixels-on-raspberry-pi/raspberry-pi-wiring for more wiring options

Install Instructions

git clone https://github.com/Adam8234/klipper-led
cd ~/klipper-led
chmod +x ./install.sh
./install.sh

When prompted, put in your password...

Config Instructions

You can edit this code in app.py. I have it configured for 3x16 NeoPixel rings.

possible LED types:

  • LED_PROGRESS.EXTRUDER - Extruder Value
  • LED_PROGRESS.HEATER_BED - Heater Value
  • LED_PROGRESS.PROGRESS - SD Card Progress
leds = [
    {
        # Index of first led starting from zero (for example: index 0-15 will be taken with this led strand)
        'index': 0,
        'led_count': 16,
        'led_type': LED_PROGRESS.PROGRESS,
        'main_color': (0, 255, 0)  # RGB
    },
    {
        'index': 16,  # Index of first led starting from zero
        'led_count': 16,
        'led_type': LED_PROGRESS.HEATER_BED,
        'main_color': (255, 0, 0)  # RGB
    },
    {
        'index': 32,  # Index of first led starting from zero
        'led_count': 16,
        'led_type': LED_PROGRESS.EXTRUDER,
        'main_color': (0, 0, 255)  # RGB
    }
]

klipper-led's People

Contributors

adam8234 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

klipper-led's Issues

Led direcction

Hello!

Thanks for your amazing code!
i'm wondering if thre's any way to reverse the orientation of the progress indicator. they're going CCW and i would like them to go CW. I'm not too code savvy.

Thanks

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.