M5GFX documentation correct for AtomS3R?
-
It seems the official documentation (the Arduino Guide linked to the web page of the AtomS3R) is not correct. Am I doing something wrong or is this documentation wrong? It says:
drawChar
Draw an unicode character.Syntax:
size_t drawChar(uint16_t uniCode, int32_t, x, int32_t y, uint8_t font)
But this doesn't compile. It should be something like: drawChar( x, y, char, color, color, zoom, zoom) (which seems to work fine)
-
@ploegmma
This function is not wrong, it is just overloaded multiple times
The parameters I typed randomly can compile successfully.
StickCP2.Display.drawChar('s', 0, 0, 2); -
@kuriko
Turns out there is an extra comma in there ("int32_t, x"). So a typo on the website (which I copied).But Although it compiles now I still could not figure out the last parameter. The doc says "uint8_t font" but thats something else then "IFont* font". What is 2 in your example?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login