[Code Quality] Remove magic numbers #4
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would it be possible to implement enums for some magic numbers?
For example, when doing tft.setTextFont(2); could be improved by doing the following:
is a Font value implicitly convertable to int (as needed in the shitty TFT_eSPI lib)
From the TFT library:
So this should mean that we could just use a enum : uint8_t, right?