Im new to the community. I was trying to use my OLED Board attached to ATSAMC21N18A. Unforuntately, I could not figure out how to use it since the GFX library available on Atmel Start is that of ASF4 which changed since ASF3. This also means that the documentation available for that library is only that of ASF 3.
One of the problems Im facing right now is trying to type out a string.
In ASF3, the following line of code is used:
gfx_mono_draw_string("Hello world!",0, 0, &sysfont)
; where the function in plain form is
void gfx_mono_draw_string(const char *str, const gfx_coord_t x, const gfx_coord_t y, const struct font *font);
However, in ASF4, the function is
void gfx_mono_text_draw_string(const struct gfx_mono_text *const me, const uint8_t *str, const gfx_coord_t x, const gfx_coord_t y, const struct font *font);
which is quite similar to the previous one except for the first input to the function shown below
const struct gfx_mono_text *const me
What do I type in here when using an instance of the function? Any ideas or examples in mind?
I would appreciate any tips or feedback. Again, Im new to this and all the links that relate to the mono gfx documentation no longer exist or are outdated.