Coder Social home page Coder Social logo

pigpiocr-rgb's Introduction

PigpioCR RGB Edition

Note: While this is a minimal library for Pigpio, its main use is for controlling RGB led strips and will not support features that do not relate to that.

Control your led light strips using pigpio and the gpio connectors on a raspberry pi.

What do I need?

You'll need crystal installed, there's a few tutorials on how to install crystal on a raspberry pi. Then you need to install pigpiod, the best way I found was to use ubuntu or raspian and just a simple apt install pigpiod and then you start the daemon using sudo pigpiod and you can party away.

This library connects to the locally running pigpio daemon on your raspberry pi, but it can also be used to connect to remote instances of pigpio by passing in a different host and port which allows you to control all the things ™️

Okay, I've got everything installed and the daemon running, now what?

Once you've installed crystal, and started the daemon you can do a few things. The primary usage of this is to provide an interface to pigpio via crystal and allow me to remotely control the daemon from a phone, another pc/website, etc..\n

This can be done by just straight out running crystal src/run.cr which will start the IPC server on port 4456 (configurable). Otherwise, you can just require the library and execute commands yourself to do what you wish without starting up the IPC server.

pigpiocr-rgb's People

Contributors

pixelinc avatar

Stargazers

 avatar

Watchers

 avatar  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.