Closed basilfx closed 4 years ago
This PR adds ucg_GetUserPtr and ucg_SetUserPtr to store user data. This feature is disabled by default, and can be enabled by adding WITH_USER_PTR.
ucg_GetUserPtr
ucg_SetUserPtr
WITH_USER_PTR
If enabled, the ucg_t structure is extended with an additional void* user_ptr.
ucg_t
void* user_ptr
This feature is copy/pasted from the U8g2 library (commit). I'm using this for the RIOT-OS port of Ucglib.
Hi @olikraus, do you have the time to look at this PR? Thanks!
excause... yes, looks ok...:-)
This PR adds
ucg_GetUserPtr
anducg_SetUserPtr
to store user data. This feature is disabled by default, and can be enabled by addingWITH_USER_PTR
.If enabled, the
ucg_t
structure is extended with an additionalvoid* user_ptr
.This feature is copy/pasted from the U8g2 library (commit). I'm using this for the RIOT-OS port of Ucglib.