MajicDesigns / MD_MAX72XX

LED Matrix Library
GNU Lesser General Public License v2.1
307 stars 122 forks source link

Add possibility to mirror data on individual devices #23

Closed clementleger closed 5 years ago

clementleger commented 5 years ago

Currently, transform TFLR does almost the job but reverses devices and whole device chain. On some devices, it is needed to simply reverse individual devices. Add a transform define to select this transformation only for individual devices.

clementleger commented 5 years ago

Acutaly, I'm not sure this is the good way to go. My device is actually displaying things mirrored all the time. Transformation seems more likely to be used for occasional Transformation whereas my device needs it all the time.

MajicDesigns commented 5 years ago

The transform function already has a form _bool transform (uint8_t startDev, uint8_t endDev, transformTypet ttype) which allows you to specify a range of devices. for one device the start and end should be the same. Alternatively a more low level approach can use the method _bool transform (uint8_t buf, transformTypet ttype) for a specific buffer.

You have not explained the difference between a "mirrored image" and one that is "flipped L to R". To me they are the same.

As you do not describe your application it is not possible to be specific, however:

clementleger commented 5 years ago

Indeed, my hardware was a FC16 ... Sorry for the disturbance :/