Re: Waveshare 2.13in display v2 driver
Posted: Sat May 23, 2020 3:51 pm
Have a read of their GitHub repo. That link is for your specific epaper range's repo and it appears most of your SPI pins are set up correctly. I've written and tested a few epaper drivers from the datasheet up, and your picture looks like the ePaper isn't initialised correctly within the driver as that sort of static image has hit me a few times as well. If you're really wanting it to work I'd recommend writing your own driver from the datasheet (which isn't as hard as it sounds, as I found out)
If you write your own driver, you can make it a framebuffer-derived one like this one that I wrote for another epaper driver IC. This has many advantages, including the fact that you can utilise the FrameBuffer methods directly, and enables you to draw pixels, lines, rectangles, text etc. on to the framebuf buffer that gets sent to your ePaper IC for display, which makes everything a lot easier.Assuming this can be made to work, mcauser's example scripts only draw images. How would one draw a pixel? If I know how to do that, I should be able to figure out how to draw lines, rectangles, circles, etc.