hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.64k stars 1.16k forks source link

IC initial function #887

Open andrei0807 opened 5 years ago

andrei0807 commented 5 years ago

This library has ic initial function? image I have LED module with ICN2053. I think I have to set up it when start. But I can not find init function in this library.

hzeller commented 5 years ago

The place to add initialization code for a particular type of panel is around here: https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/lib/framebuffer.cc#L393

Currently, this has support for FM6126-type panels. Please add the necessary code for ICN2053, then send a pull request.

The value can then be chosen either with the Options::panel_type when you create the matrix or via the --led-panel-type flag.