项目作者: LgHS

项目描述 :
Small led matrix project
高级语言: JavaScript
项目地址: git://github.com/LgHS/mate-matrix.git
创建时间: 2018-06-06T20:50:32Z
项目社区:https://github.com/LgHS/mate-matrix

开源协议:

下载


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 git@github.com: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.

  1. {
  2. "matrix": {
  3. "cols": 6,
  4. "rows": 6,
  5. "zigzag": false
  6. },
  7. "opc": [
  8. "127.0.0.1",
  9. 7890
  10. ],
  11. "fadecandy": {
  12. "verbose": true,
  13. "color": {
  14. "gamma": 2.5,
  15. "whitepoint": [
  16. 1.0,
  17. 1.0,
  18. 1.0
  19. ],
  20. "linearCutoff": 0.00390625
  21. },
  22. "cratesByGroup": 3,
  23. "ledOffset": 0,
  24. "colorOrder": "grb",
  25. "devices": [
  26. "AOFQFPTBHLLYEYTD",
  27. "JXEDMKOUXTBKISFV"
  28. ]
  29. },
  30. "processing": {
  31. "spacing": 20,
  32. "blocks" : [
  33. {"position": "left", "firstLed": 0, "cols": 3, "rows": 3},
  34. {"position": "center", "firstLed": 40, "cols": 6, "rows": 3},
  35. {"position": "right", "firstLed": 140, "cols": 3, "rows": 3}
  36. ],
  37. "dmxSerialPort": "/dev/ttyUSB0"
  38. },
  39. "crate": {
  40. "rows": 5,
  41. "cols": 4
  42. }
  43. }