The daemon (which is supposed to soon be) running the LED Matrix in the central room.
  • Python 95.6%
  • Shell 4.4%
Find a file
2023-08-07 21:34:31 +02:00
.gitignore add .vscode to gitignore (annoys me, would better be placed in my personal .gitignore, but whatever) 2022-01-07 22:10:46 +01:00
5x7.pcf.gz Copy the font files into the repo (they are tiny). 2023-08-07 21:32:33 +02:00
99-ledpanel.rules mention prerequisites 2023-07-25 18:40:21 +02:00
http_server.py http_server: load root from static file 2023-07-29 16:11:48 +02:00
hw_pygame.py after update pygame.locals needed separate import, change polling for events 2022-01-08 18:02:20 +01:00
hw_usb.py Changed the format of data sent via USB to be straight PIL.Image mode '1'. 2023-07-26 21:54:57 +02:00
ledmatrix.py Dummy text updated for cccamp2023. 2023-08-07 21:34:31 +02:00
ledmatrixd.py add http_server, more.... 2023-07-29 15:41:33 +02:00
pacman_20x20_right_to_left.png Add pacman. 2022-01-06 23:03:29 +01:00
README.md mention prerequisites 2023-07-25 18:40:21 +02:00
requirements.txt add hardware 2022-01-10 19:53:33 +01:00
run_ledmatrixd_sim.sh Copy the font files into the repo (they are tiny). 2023-08-07 21:32:33 +02:00
run_ledmatrixd_usb.sh Copy the font files into the repo (they are tiny). 2023-08-07 21:32:33 +02:00
run_vscode.sh python module requires startup for vscode 2022-01-07 14:00:19 +01:00
ter-x20b.pcf.gz Copy the font files into the repo (they are tiny). 2023-08-07 21:32:33 +02:00

ledmatrixd

A python client that will control the LED matrix that's hanging in the Nerdberg hacker space.

https://twitter.com/NerdbergEV/status/1457238769220849666

The hardware is a LED sign from a subway train that was donated to the hacker space, and ints innards (control computer) were replaced by small PCB with a stm32 controller. This hardware is documented here:

https://github.com/vogelchr/subway_led_panel_stm32f103

This software is still in active development as of January 2022.

Prerequisites

Make the panel accessible by the user running this daemon, see for example the included file 99-ledpanel.rules.

Have xorg-fonts-misc and the terminus font installed (Archlinux: terminux-font, xorg-fonts-misc).

Quick start

This daemon can be run in two ways:

./run_ledmatrixd_sim.sh

Which creates a python virtualenv, installs (besides other things) pygame, and pops up a small window showing a simulated USB matrix. This is useful for development. The other alternative is

./run_ledmatrixd_usb.sh

...which tries to connect to the real device using USB, and runs it in a python virtualenv that has pyusb installed.

(this translates to the "-S" simulation argument of pymatrixd.)

MQTT

MQTT Messages received as json objects in the subscribed topic:

Turn the LED sign off (currently unimplemented)

{
    'command': 'off'
}

Turn the LED sign on (currently unimplemented)

{
    'command': 'on'
}

Replace the main (in canvas #0)

{
    'command': 'write',
    'text': 'string you want to replace'
    'direction': pixels per 60th second
}