GithubHelp home page GithubHelp logo

lghs / mate-matrix Goto Github PK

View Code? Open in Web Editor NEW
5.0 26.0 0.0 5.8 MB

Small led matrix project

Processing 3.86% GLSL 0.55% JavaScript 87.36% HTML 0.07% C# 5.75% ShaderLab 1.70% HLSL 0.25% Java 0.47%
led matrix matrice fadecandy clubmate

mate-matrix's Introduction

mate-matrix

Mate Matrix is a LED display made with bottles of Club Mate.

It's based on Fadecandy and Open Pixel Control.

More info on our wiki (FR): https://wiki.lghs.be/projets:mate-matrix

How to use

Clone this repo with submodules to import fadecandy:

git clone --recursive [email protected]:LgHS/mate-matrix.git

Run fadecandy with a pre-existing config:

./fadecandy/bin/fc-server-rpi config/fc-config-[myconfig].json

Note: server is also available for Win7+ and OSX+. See fadecandy/bin for README.

Generate config

With one main config file you can generate config files for :

  • Fadecandy server
  • Processing client
  • Open Pixel Control OpenGL simulator.

To keep things tidy, put main config in project root and generated configs in config/ folder with prefixes (fc- for fadecandy and opc- for OPC simulator).

Processing config should go inside each sketch data folder.

Fadecandy

node generator/fadecandy.js my-config.json > config/fc-myconfig.json

OPC Simulator

Use with Open Pixel Control OpenGL viewer (Linux or OSX only).

To build and run simulator, see README in OPC repo

To generate config for simulator:

node generator/opc-simulator.js my-config.json > config/opc-myconfig.json

Note: looks like it doesn't work on Linux anymore :( More info here

Processing

Generate config file used by MateMatrix.pde.

node generator/processing.js ./my-config.json > src/processing/MyProjectSketch/data/matrix_config.json

Config reference

Remove comments before use.

{
  "matrix": {
    "cols": 6,
    "rows": 6,
    "zigzag": false
  },
  "opc": [
    "127.0.0.1",
    7890
  ],
  "fadecandy": {
    "verbose": true,
    "color": {
      "gamma": 2.5,
      "whitepoint": [
        1.0,
        1.0,
        1.0
      ],
      "linearCutoff": 0.00390625
    },
    "cratesByGroup": 3,
    "ledOffset": 0,
    "colorOrder": "grb",
    "devices": [
      "AOFQFPTBHLLYEYTD",
      "JXEDMKOUXTBKISFV"
    ]
  },
  "processing": {
    "spacing": 20,
    "blocks" : [
      {"position": "left", "firstLed": 0, "cols": 3, "rows": 3},
      {"position": "center", "firstLed": 40, "cols": 6, "rows": 3},
      {"position": "right", "firstLed": 140, "cols": 3, "rows": 3}
    ],
    "dmxSerialPort": "/dev/ttyUSB0"
  },
  "crate": {
    "rows": 5,
    "cols": 4
  }
}

mate-matrix's People

Contributors

bendem avatar drskullster avatar gregberger avatar jeromej avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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