The project is well documented as a MathWorks file exchange submission. The file exchange link includes a MATLAB live script that will help you understand the process of creating a custom device driver block using system object. It takes you through the steps of interfacing an ePaper display with Arduino Mega from Simulink / MATLAB.
Details
Visit the MathWorks file exchange submission page for detailed explanation: