I want to show text on this display, but using the waveshare library, it appears that I can only draw images. Did I miss something here?
I have also tried Adafruit Sharp Memory Display library as well, but couldn't get that to work.
I want to show text on this display, but using the waveshare library, it appears that I can only draw images. Did I miss something here?
I have also tried Adafruit Sharp Memory Display library as well, but couldn't get that to work.
From MemoryLCD.h
void drawPixel(uint16_t x, uint16_t y, uint32_t color);
void drawBitmap(uint8_t x,uint8_t y,const uint8_t *pBmp, uint8_t chWidth, uint8_t chHeight);
void drawChar1616(uint8_t x,uint8_t y,uint8_t chChar);
void drawChar3216(uint8_t x, uint8_t y, uint8_t chChar);
void drawString(uint8_t x, uint8_t y, const char *pString, uint8_t Size, uint8_t Mode);
void drawChar(uint8_t x, uint8_t y, uint8_t acsii, uint8_t size, uint8_t mode);
So it looks as if you can draw regular text and even 32x16 Chinese characters.
The example sketch has some commented statements e.g.
memLcd.drawString(0, 52, "MUSIC", 12, 0);
I suspect that you need more Flash and SRAM to run all of the commented statements. But you can try one or two statements.
David.