Hello, I’m using the EPAPER_420 display and going off this tutorial: https://learn.sparkfun.com/tutorials/ev … ng-windows
I have been able to draw lines, pixels and shapes on the epaper display using the SparkFun_ePaper_Arduino_Library however I can’t get fonts written. This tutorial doesn’t make it clear to me if the default font stuff works out of the box or if there are some missing pieces that need to be done.
In hyperdisplay.h it has this section within class hyperdisplay : public Print … public:
// Printing
virtual size_t write(uint8_t val); // This is the implementation of write that is inherited from print.h, left as virtual to be implementation specific
#if HYPERDISPLAY_USE_PRINT
virtual void getCharInfo(uint8_t character, char_info_t * pchar); // The pchar pointer argument points to a valid char_info_t object that the function must fill out with the right values
#endif /* HYPERDISPLAY_USE_PRINT */
void setTextCursor(int32_t x0, int32_t y0, wind_info_t * window = NULL);
void resetTextCursor(wind_info_t * window = NULL);
And there are two incomplete example programs in the hyperdisplay library from within the Arduino IDE.
Once I #include Sparkfun_ePaper_420.h and hyperdisplay.h and create an EPAPER_420 object instance named myEpaper, how do I call these setTextCursor() and print() functions? myEpaper.setTextCursor(x,y) doesn’t work. I don’t understand if I must first implement my own inherited class to use the default font or if there is already an out-of-the-box way.