Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
379 stars 119 forks source link

EPD SPI Example: Please add some epd_print text out examples #94

Open markbirss opened 1 year ago

markbirss commented 1 year ago

Currently only able to show jpeg images, how about ability to output text ? https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/blob/master/examples/spi_driver/test/epd.py

G6EJD commented 1 year ago

String text = “Hello world”; char data = const_cast<char>(text.c_str()); int x = 10; Int y = 10; write_string(&currentFont, data, &x, &y, framebuffer);

markbirss commented 1 year ago

String text = “Hello world”; char data = const_cast<char>(text.c_str()); int x = 10; Int y = 10; write_string(&currentFont, data, &x, &y, framebuffer);

Im looking for python example for the slave spi driver with LILYGO 4.7" EPD connected to Raspberry Pi 3 Model B? https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/tree/master/examples/spi_driver

G6EJD commented 1 year ago

There’s already an example function: def draw_char(