Seeed-Studio / Grove_LCD_RGB_Backlight

Seeedstudio, Grove - LCD RGB Backlight
MIT License
79 stars 90 forks source link

Initialize fields. #16

Closed trombonehero closed 2 years ago

trombonehero commented 2 years ago

When an rgb_lcd object is instantiated in the static store (e.g., with a global variable), all internal memory is zeroed. However, we shouldn't rely on that, as users may wish to initialize rgb_lcd in other places, e.g., on the heap!