Skip to content

janvdbergh/rpi-rgb-led-matrix-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DisplayServer

DisplayServer is a TCP server accepting commands to control a LED matrix display connected to the Raspberry Pi.

Building

To build DisplayServer, the LED Matrix library has to be installed in $HOME/libs/rpi-rgb-led-matrix. It can be cloned and built from https://github.com/hzeller/rpi-rgb-led-matrix.

Server

Build the files. Then run either DisplayServerLed or DisplayServerMock. It will start listening on port 1246.

Client

The client library (both C++ and Python) support the following operations:

  • clear()
  • clor(r, g, b)
  • pixel(x, y)
  • rectangle(x, y, width, height)
  • digit(position, digit) - to show a clock with up to 4 large digits
  • smallText(x, y, text)
  • largeText(x, y, text)
  • defineImage(name, image) - in Python this expects an 8 bit PIL.Image (see Pillow)
  • image(x, y, name)
  • show()

About

Network server for controlling a led matrix board connected to a Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published