Contents Previous Next

## 13.2 Improving the LEDs with supersampling

In order to improve the visual appearance the library uses super-sampling in order to create an anti-aliased image of the LED digits. The default level of super-sampling is 3 times (oversampling). In order reduce the CPU load the amount of oversampling can be lowered. The level of super-sampling is controlled via the method `DigitalLed74::SetSupersampling::($aSuperSampling=3)`

For example setting the oversampling to "1" is the same thing as disabling super-sampling. This will generate a fast image but a LED appearance that looks quite "rugged".

Increasing the level of oversampling above "4" gives almost no visual improvement to the resulting image, it will only increase the CPU time needed to create the final image. Hence it is recommended that the super-sampling is only specified as an integer in the range one to four.

Contents Previous Next