Use Waveshare e-ink e-paper to build a business card application
The document of the e-paper is in wiki of WaveShare.
It is a 2.7 inches e-paper HAT for Raspberry Pi. It also has another 8 pin connector for other hardware.
There are 4 buttons only connected to Raspberry Pi HAT connector.
In order to access 4 buttons, the Nucleo board connect only to the HAT connector. There are [schematic circuit diagram] (https://www.waveshare.com/wiki/File:2.7inch_e-Paper_HAT_Schematic.pdf) for the e-paper.
The orginal demo code is available in the link. I use the CubeMx to create the startup code. In order to compatible with the demo code, the setting of heap size are set to be 0x2000.
There is a program [image2lcd v2.9] provided in the wiki(https://www.waveshare.com/wiki/File:Image2Lcd.7z). There is a document about how to convert picture to data array. However, the steps doesn't work for me. I use the following steps
- Create a picture with width x height = 176 x 264
- Run the image2lcd program
- Open the picture file
- Output file type = c array
- Scan mode = horizon scan
- BitPixel = monochrome
- Max width and height = 176 264
- The following options are all off
- Check Reverse Color Then save the result